|
reSIProcate
SIP stack, Dialog Usage Manager and related libraries
|
#include <ConfigParse.hxx>
Classes | |
| class | Exception |
| class | NestedConfigParse |
Public Types | |
| typedef HashMap< int, NestedConfigParse > | NestedConfigMap |
Public Member Functions | |
| ConfigParse () | |
| virtual | ~ConfigParse () |
| virtual void | parseConfig (int argc, char **argv, const resip::Data &defaultConfigFilename) |
| virtual void | parseConfig (int argc, char **argv, const resip::Data &defaultConfigFilename, int skipCount) |
| virtual void | parseCommandLine (int argc, char **argv, int skipCount=0) |
| virtual void | parseConfigFile (const resip::Data &filename) |
| virtual void | printHelpText (int argc, char **argv)=0 |
| void | getConfigIndexKeys (const resip::Data &indexName, std::set< resip::Data > &keys) const |
| bool | getConfigValue (const resip::Data &name, resip::Data &value) const |
| resip::Data | getConfigData (const resip::Data &name, const resip::Data &defaultValue, bool useDefaultIfEmpty=false) const |
| bool | getConfigValue (const resip::Data &name, bool &value) const |
| bool | getConfigBool (const resip::Data &name, bool defaultValue) const |
| bool | getConfigValue (const resip::Data &name, unsigned long &value) const |
| unsigned long | getConfigUnsignedLong (const resip::Data &name, unsigned long defaultValue) const |
| bool | getConfigValue (const resip::Data &name, int &value) const |
| int | getConfigInt (const resip::Data &name, int defaultValue) const |
| bool | getConfigValue (const resip::Data &name, unsigned short &value) const |
| unsigned short | getConfigUnsignedShort (const resip::Data &name, int defaultValue) const |
| bool | getConfigValue (const resip::Data &name, std::vector< resip::Data > &value) const |
| bool | getConfigValue (const resip::Data &name, std::vector< int > &value) const |
| bool | getConfigValue (const resip::Data &name, std::set< resip::Data > &value) const |
| NestedConfigMap | getConfigNested (const resip::Data &mapsPrefix) const |
| bool | AddBasePathIfRequired (Data &filename) const |
| void | insertConfigValue (const resip::Data &name, const resip::Data &value) |
Protected Types | |
| typedef HashMultiMap< resip::Data, resip::Data > | ConfigValuesMap |
Protected Member Functions | |
| template<typename T > | |
| bool | translateConfigValue (const std::map< T, resip::Data > dict, const resip::Data &name, T &value) const |
| void | insertConfigValue (const Data &source, ConfigValuesMap &configValues, const resip::Data &name, const resip::Data &value) |
| resip::Data | removePath (const resip::Data &fileAndPath) const |
Protected Attributes | |
| ConfigValuesMap | mCmdLineConfigValues |
| ConfigValuesMap | mFileConfigValues |
| ConfigValuesMap | mConfigValues |
| resip::Data | mCmdLineConfigFilename |
| resip::Data | mConfigBasePath |
Friends | |
| EncodeStream & | operator<< (EncodeStream &strm, const ConfigParse &config) |
Definition at line 14 of file ConfigParse.hxx.
|
protected |
Definition at line 92 of file ConfigParse.hxx.
| typedef HashMap<int, NestedConfigParse> resip::ConfigParse::NestedConfigMap |
Definition at line 63 of file ConfigParse.hxx.
| resip::ConfigParse::ConfigParse | ( | ) |
Definition at line 23 of file ConfigParse.cxx.
|
virtual |
Definition at line 27 of file ConfigParse.cxx.
| bool resip::ConfigParse::AddBasePathIfRequired | ( | Data & | filename | ) | const |
Definition at line 509 of file ConfigParse.cxx.
| bool resip::ConfigParse::getConfigBool | ( | const resip::Data & | name, |
| bool | defaultValue | ||
| ) | const |
Definition at line 289 of file ConfigParse.cxx.
| Data resip::ConfigParse::getConfigData | ( | const resip::Data & | name, |
| const resip::Data & | defaultValue, | ||
| bool | useDefaultIfEmpty = false |
||
| ) | const |
Definition at line 248 of file ConfigParse.cxx.
| void resip::ConfigParse::getConfigIndexKeys | ( | const resip::Data & | indexName, |
| std::set< resip::Data > & | keys | ||
| ) | const |
Definition at line 207 of file ConfigParse.cxx.
| int resip::ConfigParse::getConfigInt | ( | const resip::Data & | name, |
| int | defaultValue | ||
| ) | const |
Definition at line 334 of file ConfigParse.cxx.
| ConfigParse::NestedConfigMap resip::ConfigParse::getConfigNested | ( | const resip::Data & | mapsPrefix | ) | const |
Definition at line 438 of file ConfigParse.cxx.
| unsigned long resip::ConfigParse::getConfigUnsignedLong | ( | const resip::Data & | name, |
| unsigned long | defaultValue | ||
| ) | const |
Definition at line 311 of file ConfigParse.cxx.
| unsigned short resip::ConfigParse::getConfigUnsignedShort | ( | const resip::Data & | name, |
| int | defaultValue | ||
| ) | const |
Definition at line 357 of file ConfigParse.cxx.
| bool resip::ConfigParse::getConfigValue | ( | const resip::Data & | name, |
| bool & | value | ||
| ) | const |
Definition at line 259 of file ConfigParse.cxx.
| bool resip::ConfigParse::getConfigValue | ( | const resip::Data & | name, |
| int & | value | ||
| ) | const |
Definition at line 319 of file ConfigParse.cxx.
| bool resip::ConfigParse::getConfigValue | ( | const resip::Data & | name, |
| resip::Data & | value | ||
| ) | const |
Definition at line 234 of file ConfigParse.cxx.
| bool resip::ConfigParse::getConfigValue | ( | const resip::Data & | name, |
| std::set< resip::Data > & | value | ||
| ) | const |
Definition at line 410 of file ConfigParse.cxx.
| bool resip::ConfigParse::getConfigValue | ( | const resip::Data & | name, |
| std::vector< int > & | value | ||
| ) | const |
Definition at line 393 of file ConfigParse.cxx.
| bool resip::ConfigParse::getConfigValue | ( | const resip::Data & | name, |
| std::vector< resip::Data > & | value | ||
| ) | const |
Definition at line 365 of file ConfigParse.cxx.
| bool resip::ConfigParse::getConfigValue | ( | const resip::Data & | name, |
| unsigned long & | value | ||
| ) | const |
Definition at line 297 of file ConfigParse.cxx.
| bool resip::ConfigParse::getConfigValue | ( | const resip::Data & | name, |
| unsigned short & | value | ||
| ) | const |
Definition at line 342 of file ConfigParse.cxx.
|
protected |
Definition at line 473 of file ConfigParse.cxx.
| void resip::ConfigParse::insertConfigValue | ( | const resip::Data & | name, |
| const resip::Data & | value | ||
| ) |
Definition at line 488 of file ConfigParse.cxx.
|
virtual |
Definition at line 66 of file ConfigParse.cxx.
|
virtual |
Reimplemented in reTurn::ReTurnConfig.
Definition at line 32 of file ConfigParse.cxx.
|
virtual |
Definition at line 38 of file ConfigParse.cxx.
|
virtual |
Definition at line 146 of file ConfigParse.cxx.
|
pure virtual |
Implemented in repro::ProxyConfig, resip::SipConfigParse, reTurn::ReTurnConfig, and resip::ConfigParse::NestedConfigParse.
|
protected |
Definition at line 494 of file ConfigParse.cxx.
|
inlineprotected |
Definition at line 72 of file ConfigParse.hxx.
|
friend |
Definition at line 526 of file ConfigParse.cxx.
|
protected |
Definition at line 103 of file ConfigParse.hxx.
|
protected |
Definition at line 96 of file ConfigParse.hxx.
|
protected |
Definition at line 105 of file ConfigParse.hxx.
|
protected |
Definition at line 98 of file ConfigParse.hxx.
|
protected |
Definition at line 97 of file ConfigParse.hxx.