hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Config Class Reference

#include <Config.h>

Public Member Functions

 Config (char *fName)
 ~Config ()
void getAsString (const char *sectionName, const char *paramName, char *&value, const char *defValue)
void getAsInt (const char *sectionName, const char *paramName, int &value, int defValue)
void getAsUnsigned (const char *sectionName, const char *paramName, unsigned int &value, unsigned int defValue)
void getAsInt64 (const char *sectionName, const char *paramName, u_int64_t &value, u_int64_t defValue)
void getAsBool (const char *sectionName, const char *paramName, bool &value, bool defValue)
void getAsDouble (const char *sectionName, const char *paramName, double &value, double defValue)
void readSection (const char *sectionName, char **&values, int &size)
bool isConfigExist ()
void print ()

Detailed Description

Definition at line 9 of file Config.h.

Constructor & Destructor Documentation

Config::Config ( char *  fName)

Definition at line 6 of file Config.cpp.

Config::~Config ( )

Definition at line 138 of file Config.cpp.

Member Function Documentation

void Config::getAsBool ( const char *  sectionName,
const char *  paramName,
bool &  value,
bool  defValue 
)

Definition at line 235 of file Config.cpp.

void Config::getAsDouble ( const char *  sectionName,
const char *  paramName,
double &  value,
double  defValue 
)

Definition at line 255 of file Config.cpp.

void Config::getAsInt ( const char *  sectionName,
const char *  paramName,
int &  value,
int  defValue 
)

Definition at line 178 of file Config.cpp.

Here is the caller graph for this function:

void Config::getAsInt64 ( const char *  sectionName,
const char *  paramName,
u_int64_t &  value,
u_int64_t  defValue 
)

Definition at line 217 of file Config.cpp.

void Config::getAsString ( const char *  sectionName,
const char *  paramName,
char *&  value,
const char *  defValue 
)

Definition at line 156 of file Config.cpp.

Here is the caller graph for this function:

void Config::getAsUnsigned ( const char *  sectionName,
const char *  paramName,
unsigned int &  value,
unsigned int  defValue 
)

Definition at line 198 of file Config.cpp.

bool Config::isConfigExist ( )

Definition at line 308 of file Config.cpp.

Here is the caller graph for this function:

void Config::print ( )

Definition at line 147 of file Config.cpp.

void Config::readSection ( const char *  sectionName,
char **&  values,
int &  size 
)

Definition at line 273 of file Config.cpp.


The documentation for this class was generated from the following files: