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= '@') |
Private Member Functions | |
UtilParameters (const UtilParameters ©) | |
UtilParameters & | operator= (const UtilParameters &rhs) |
UtilParam * | FindEntry (const char *section, const char *name) |
string * | Find (const char *section, const char *name) |
std::string * | Find (const char *section, const char *name) |
Private Attributes | |
map< string, UtilParam > | m_paramMap |
std::map< std::string, std::string > | m_paramMap |
Definition at line 30 of file UtilParameters.h.
|
private |
|
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.
References ScanCmdLineArgs().
|
inline |
Definition at line 40 of file UtilParameters.h.
|
private |
void UtilParameters::ScanCmdLineArgs | ( | int & | argc, |
char * | argv[] | ||
) |
Referenced by UtilParameters().
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 |
||
) |
Referenced by DippyDecompApp::DippyDecompApp(), MILP_Param::getSettings(), GAP_DecompParam::getSettings(), AP3_DecompParam::getSettings(), MCF_Param::getSettings(), SDPUC_Param::getSettings(), VRP_Param::getSettings(), MAD_DecompParam::getSettings(), ATM_Param::getSettings(), TSP_Param::getSettings(), MMKP_Param::getSettings(), DecompParam::getSettings(), MILPBlock_Param::getSettings(), and AlpsDecompParam::getSettings().
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 |
||
) |
|
private |
|
private |
|
inline |
Definition at line 42 of file UtilParameters.h.
References m_paramMap.
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.
|
private |
|
private |
Definition at line 36 of file UtilParameters.h.
Referenced by getParamMap().
|
private |
Definition at line 28 of file UtilParameters.h.