13 #ifndef UTIL_APP_INCLUDED
14 #define UTIL_APP_INCLUDED
24 UtilApp(
int& argc,
char* argv[]);
36 const std::string&
Program()
const;
42 bool defaultValue=
true,
43 const char* section = NULL)
const;
45 const char* defaultValue,
46 const char* section = NULL)
const;
49 const char* section = NULL)
const;
52 const char* section = NULL)
const;
55 const char* section = NULL)
const;
63 const char* section = NULL)
const;
67 const std::string& section)
const
68 {
return GetSetting(name,defaultValue,section.c_str());}
71 const char* defaultValue,
72 const std::string& section)
const
73 {
return GetSetting(name,defaultValue,section.c_str());}
76 const std::string& section)
const
77 {
return GetSetting(name,defaultValue,section.c_str());}
80 const std::string& section)
const
81 {
return GetSetting(name,defaultValue,section.c_str());}
84 const std::string& section)
const
85 {
return GetSetting(name,defaultValue,section.c_str());}
88 const std::string& section)
const
89 {
return GetSetting(name,defaultValue,section.c_str());}
103 std::string QualifiedName(
const std::string& name,
104 const std::string& section)
const;
105 std::string QualifiedName(
const char* name,
const char* section)
const;
118 typedef std::map<std::string,std::string,less<std::string> >
PARM_MAP;
static UtilApp & TheApp()
int GetSetting(const char *name, int defaultValue, const std::string §ion) const
static UtilApp * m_theApp
bool GetSetting(const char *name, bool defaultValue, const std::string §ion) const
std::string GetSetting(const char *name, const char *defaultValue, const std::string §ion) const
std::string m_fullPathname
bool GetSetting(const char *name, bool defaultValue=true, const char *section=NULL) const
long GetSetting(const char *name, long defaultValue, const std::string §ion) const
bool operator==(const UtilApp &rhs) const
bool operator<(const UtilApp &rhs) const
const std::string & FullPathname() const
std::map< std::string, std::string, less< std::string > > PARM_MAP
const std::string & Machine()
double GetSetting(const char *name, double defaultValue, const std::string §ion) const
void ScanCmdLineArgs(int &argc, char *argv[])
short GetSetting(const char *name, short defaultValue, const std::string §ion) const
const std::string & Program() const
void LoadParmFile(std::string &fname)
UtilApp & operator=(const UtilApp &rhs)