29 #ifndef CONFIGURATOR_H 30 #define CONFIGURATOR_H 46 #define CFG_MAX_LINE_LENGTH 512 77 const string getkey (
void ) {
return m_key; }
92 int value(
void ) {
return m_int; }
93 void set(
int a_newval ) { m_int = a_newval; }
107 double value(
void ) {
return m_float; }
108 void set(
double a_newval ) { m_float = a_newval; }
123 bool value(
void ) {
return m_bool; }
124 void set(
bool a_newval ) { m_bool = a_newval; }
139 const char*
value(
void ) {
return m_string.c_str(); }
140 void set(
char* a_newval ) { m_string = a_newval; }
155 void ParseCfgLine(
char* a_line );
156 void SetCfgInt (
char* a_key,
char* a_val );
157 void SetCfgFloat (
char* a_key,
char* a_val );
158 void SetCfgBool (
char* a_key,
char* a_val );
159 void SetCfgStr (
char* a_key,
char* a_val );
160 bool LastDoubleQuote(
char* a_rest_of_line );
164 bool SetCfgGatekeeper(
const char* a_method,
169 void ShowIdType(
unsigned int a_i );
170 char* ExtractString(
char* a_line );
171 void DumpSymbols(
const char *a_dumpfile,
179 void DumpPublicSymbols(
const char *a_dumpfile,
187 void DumpAllSymbolsAndExit(
const char *a_dumpfile );
193 bool ReadSymbols(
const char *a_cfgfile );
203 bool Register(
CfgBase* a_cfgval,
const char* a_key );
208 #endif // CONFIGURATOR_H class Configurator * g_cfg
CfgSecureLevel getlevel(void)
Integer configurator entry class.
A class to provide standard parameter entry facilities.
virtual CfgType gettype(void)
virtual CfgType gettype(void)
vector< CfgBase * > CfgVals
String configurator entry class.
Bool configurator entry class.
virtual CfgType gettype(void)
Base class for a configurator entry.
const string getkey(void)
virtual CfgType gettype(void)
Double configurator entry class.
virtual CfgType gettype(void)
map< string, unsigned int > CfgI