Dip
0.92.4
|
#include <UtilParameters.h>
Public Member Functions | |
UtilParameters () | |
UtilParameters (int &argc, char *argv[]) | |
~UtilParameters () | |
void | ScanCmdLineArgs (int &argc, char *argv[]) |
void | LoadParamFile (string ¶mFileName) |
void | Add (string §ion, string &name, string &value) |
void | Add (const char *section, const char *name, const char *value) |
string | GetSetting (const char *name, const char *defaultValue, const char *section=NULL) |
int | GetSetting (const char *name, const int defaultValue, const char *section=NULL) |
bool | GetSetting (const char *name, const bool defaultValue, const char *section=NULL) |
long | GetSetting (const char *name, const long defaultValue, const char *section=NULL) |
double | GetSetting (const char *name, const double defaultValue, const char *section=NULL) |
UtilParameters () | |
UtilParameters (int &argc, char *argv[]) | |
~UtilParameters () | |
const std::map< std::string, std::string > | getParamMap () |
void | ScanCmdLineArgs (int &argc, char *argv[]) |
void | LoadParamFile (std::string ¶mFileName) |
void | Add (std::string §ion, std::string &name, std::string &value) |
void | Add (const char *section, const char *name, const char *value) |
std::string | GetSetting (const char *name, const char *defaultValue, const char *section=NULL) |
int | GetSetting (const char *name, const int defaultValue, const char *section=NULL) |
bool | GetSetting (const char *name, const bool defaultValue, const char *section=NULL) |
long | GetSetting (const char *name, const long defaultValue, const char *section=NULL) |
double | GetSetting (const char *name, const double defaultValue, const char *section=NULL) |
std::string | GetSetting (const char *name, const std::string defaultValue, const char *section=NULL) |
std::vector< std::string > & | split (const std::string &s, std::vector< std::string > &elems, char delim='@') |
Definition at line 30 of file UtilParameters.h.
|
inline |
Definition at line 39 of file UtilParameters.h.
|
inline |
Definition at line 42 of file UtilParameters.h.
|
inline |
Definition at line 48 of file UtilParameters.h.
|
inline |
Definition at line 31 of file UtilParameters.h.
|
inline |
Definition at line 34 of file UtilParameters.h.
|
inline |
Definition at line 40 of file UtilParameters.h.
void UtilParameters::ScanCmdLineArgs | ( | int & | argc, |
char * | argv[] | ||
) |
void UtilParameters::LoadParamFile | ( | string & | paramFileName | ) |
void UtilParameters::Add | ( | string & | section, |
string & | name, | ||
string & | value | ||
) |
void UtilParameters::Add | ( | const char * | section, |
const char * | name, | ||
const char * | value | ||
) |
string UtilParameters::GetSetting | ( | const char * | name, |
const char * | defaultValue, | ||
const char * | section = NULL |
||
) |
int UtilParameters::GetSetting | ( | const char * | name, |
const int | defaultValue, | ||
const char * | section = NULL |
||
) |
bool UtilParameters::GetSetting | ( | const char * | name, |
const bool | defaultValue, | ||
const char * | section = NULL |
||
) |
long UtilParameters::GetSetting | ( | const char * | name, |
const long | defaultValue, | ||
const char * | section = NULL |
||
) |
double UtilParameters::GetSetting | ( | const char * | name, |
const double | defaultValue, | ||
const char * | section = NULL |
||
) |
|
inline |
Definition at line 42 of file UtilParameters.h.
void UtilParameters::ScanCmdLineArgs | ( | int & | argc, |
char * | argv[] | ||
) |
void UtilParameters::LoadParamFile | ( | std::string & | paramFileName | ) |
void UtilParameters::Add | ( | std::string & | section, |
std::string & | name, | ||
std::string & | value | ||
) |
void UtilParameters::Add | ( | const char * | section, |
const char * | name, | ||
const char * | value | ||
) |
std::string UtilParameters::GetSetting | ( | const char * | name, |
const char * | defaultValue, | ||
const char * | section = NULL |
||
) |
int UtilParameters::GetSetting | ( | const char * | name, |
const int | defaultValue, | ||
const char * | section = NULL |
||
) |
bool UtilParameters::GetSetting | ( | const char * | name, |
const bool | defaultValue, | ||
const char * | section = NULL |
||
) |
long UtilParameters::GetSetting | ( | const char * | name, |
const long | defaultValue, | ||
const char * | section = NULL |
||
) |
double UtilParameters::GetSetting | ( | const char * | name, |
const double | defaultValue, | ||
const char * | section = NULL |
||
) |
std::string UtilParameters::GetSetting | ( | const char * | name, |
const std::string | defaultValue, | ||
const char * | section = NULL |
||
) |
|
inline |
Definition at line 73 of file UtilParameters.h.