|
Goose Management Model ODdox
1.02
|
A class to provide standard parameter entry facilities. More...
#include <configurator.h>
Public Member Functions | |
| Configurator (void) | |
| void | DumpAllSymbolsAndExit (const char *a_dumpfile) |
| void | DumpPublicSymbols (const char *a_dumpfile, CfgSecureLevel a_level) |
| bool | ReadSymbols (const char *a_cfgfile) |
| bool | Register (CfgBase *a_cfgval, const char *a_key) |
| ~Configurator (void) | |
Protected Member Functions | |
| void | DumpSymbols (const char *a_dumpfile, CfgSecureLevel a_level) |
| char * | ExtractString (char *a_line) |
| bool | LastDoubleQuote (char *a_rest_of_line) |
| void | ParseCfgLine (char *a_line) |
| void | SetCfgBool (char *a_key, char *a_val) |
| void | SetCfgFloat (char *a_key, char *a_val) |
| bool | SetCfgGatekeeper (const char *a_method, const char *a_key, CfgSecureLevel a_level) |
| void | SetCfgInt (char *a_key, char *a_val) |
| void | SetCfgStr (char *a_key, char *a_val) |
| void | ShowIdType (unsigned int a_i) |
Protected Attributes | |
| map< string, unsigned int > | CfgI |
| vector< CfgBase * > | CfgVals |
| unsigned int | m_lineno |
A class to provide standard parameter entry facilities.
Definition at line 161 of file configurator.h.
| Configurator::Configurator | ( | void | ) |
Definition at line 168 of file configurator.cpp.
References m_lineno.
Referenced by CfgBase::CfgBase().
| Configurator::~Configurator | ( | void | ) |
Definition at line 175 of file configurator.cpp.
| void Configurator::DumpAllSymbolsAndExit | ( | const char * | a_dumpfile | ) |
Definition at line 601 of file configurator.cpp.
References CFG_PRIVATE, and DumpSymbols().
Referenced by Landscape::DumpAllSymbolsAndExit().
| void Configurator::DumpPublicSymbols | ( | const char * | a_dumpfile, |
| CfgSecureLevel | a_level | ||
| ) |
Definition at line 590 of file configurator.cpp.
References CFG_PUBLIC, and DumpSymbols().
Referenced by Landscape::DumpPublicSymbols().
|
protected |
Definition at line 608 of file configurator.cpp.
References CFG_BOOL, CFG_FLOAT, CFG_INT, CFG_MAX_LINE_LENGTH, CFG_STRING, CfgI, CfgSecureStrings, CfgTypeStrings, CfgVals, g_msg, CfgInt::value(), CfgFloat::value(), CfgBool::value(), CfgStr::value(), MapErrorMsg::Warn(), and WARN_FILE.
Referenced by DumpAllSymbolsAndExit(), and DumpPublicSymbols().
|
protected |
Definition at line 223 of file configurator.cpp.
References g_msg, LastDoubleQuote(), m_lineno, MapErrorMsg::Warn(), and WARN_FILE.
Referenced by ParseCfgLine().
|
protected |
|
protected |
Definition at line 307 of file configurator.cpp.
References CFG_MAX_LINE_LENGTH, CfgI, ExtractString(), g_msg, m_lineno, SetCfgBool(), SetCfgFloat(), SetCfgInt(), SetCfgStr(), MapErrorMsg::Warn(), and WARN_FILE.
Referenced by ReadSymbols().
| bool Configurator::ReadSymbols | ( | const char * | a_cfgfile | ) |
Definition at line 201 of file configurator.cpp.
References CFG_MAX_LINE_LENGTH, g_msg, m_lineno, ParseCfgLine(), MapErrorMsg::Warn(), and WARN_FILE.
Referenced by Landscape::ReadSymbols().
| bool Configurator::Register | ( | CfgBase * | a_cfgval, |
| const char * | a_key | ||
| ) |
|
protected |
Definition at line 479 of file configurator.cpp.
References CFG_BOOL, CfgI, CfgVals, g_msg, m_lineno, SetCfgGatekeeper(), ShowIdType(), MapErrorMsg::Warn(), and WARN_FILE.
Referenced by ParseCfgLine().
|
protected |
Definition at line 521 of file configurator.cpp.
References CFG_FLOAT, CfgI, CfgVals, FloatToDouble(), g_msg, m_lineno, SetCfgGatekeeper(), ShowIdType(), MapErrorMsg::Warn(), and WARN_FILE.
Referenced by ParseCfgLine().
|
protected |
Definition at line 415 of file configurator.cpp.
References CFG_PRIVATE, CFG_PUBLIC, g_msg, l_cfg_public_exit_on_set, l_cfg_public_warn_on_set, m_lineno, CfgBool::value(), MapErrorMsg::Warn(), and WARN_FILE.
Referenced by SetCfgBool(), SetCfgFloat(), SetCfgInt(), and SetCfgStr().
|
protected |
Definition at line 442 of file configurator.cpp.
References CFG_INT, CfgI, CfgVals, g_msg, m_lineno, SetCfgGatekeeper(), ShowIdType(), MapErrorMsg::Warn(), and WARN_FILE.
Referenced by ParseCfgLine().
|
protected |
Definition at line 561 of file configurator.cpp.
References CFG_STRING, CfgI, CfgVals, g_msg, m_lineno, SetCfgGatekeeper(), ShowIdType(), MapErrorMsg::Warn(), and WARN_FILE.
Referenced by ParseCfgLine().
|
protected |
Definition at line 403 of file configurator.cpp.
References CfgTypeStrings, CfgVals, g_msg, WARN_FILE, and MapErrorMsg::WarnAddInfo().
Referenced by SetCfgBool(), SetCfgFloat(), SetCfgInt(), and SetCfgStr().
|
protected |
Definition at line 164 of file configurator.h.
Referenced by DumpSymbols(), ParseCfgLine(), Register(), SetCfgBool(), SetCfgFloat(), SetCfgInt(), and SetCfgStr().
|
protected |
Definition at line 165 of file configurator.h.
Referenced by DumpSymbols(), Register(), SetCfgBool(), SetCfgFloat(), SetCfgInt(), SetCfgStr(), and ShowIdType().
|
protected |
Definition at line 168 of file configurator.h.
Referenced by Configurator(), ExtractString(), ParseCfgLine(), ReadSymbols(), SetCfgBool(), SetCfgFloat(), SetCfgGatekeeper(), SetCfgInt(), and SetCfgStr().