#include <ConfigMap.H>
Public Member Functions | |
| ConfigMap (Log *log) | |
| Creates an empty map. | |
| ConfigMap (const std::string &filename, Log *log) | |
| Creates a map by reading in the config file. | |
| ConfigMap (int argc, char **argv, Log *log, bool exitOnUnrecognizedArgument) | |
| virtual | ~ConfigMap () |
| void | printArgumentHelpAndExit (const std::string &programName) |
| bool | readFile (const std::string &filename) |
| template<class T> | |
| bool | retypeString (const std::string &str, T &val) |
| template<class VALTYPE> | |
| VALTYPE | get (std::string keyString, const VALTYPE &defaultVal) |
| std::string | get (QUOTED_STRING keyString, QUOTED_STRING defaultVal) |
| std::string | get (QUOTED_STRING keyString, std::string defaultVal) |
| std::string | get (std::string keyString, QUOTED_STRING defaultVal) |
| std::string | get (std::string keyString, std::string defaultVal) |
| bool | containsKey (const std::string &keyString) |
| std::string | getValue (const std::string &keyString) |
| void | set (const std::string &key, const std::string &value) |
| void | debugPrint () |
| VRG3D::ConfigMap::ConfigMap | ( | Log * | log | ) | [inline] |
Creates an empty map.
| VRG3D::ConfigMap::ConfigMap | ( | const std::string & | filename, | |
| Log * | log | |||
| ) | [inline] |
| VRG3D::ConfigMap::ConfigMap | ( | int | argc, | |
| char ** | argv, | |||
| Log * | log, | |||
| bool | exitOnUnrecognizedArgument | |||
| ) |
Create a map by reading in arguments that specify files to load and/or individual mappings
| virtual VRG3D::ConfigMap::~ConfigMap | ( | ) | [inline, virtual] |
| void VRG3D::ConfigMap::printArgumentHelpAndExit | ( | const std::string & | programName | ) |
| bool VRG3D::ConfigMap::readFile | ( | const std::string & | filename | ) |
Referenced by ConfigMap().
| bool VRG3D::ConfigMap::retypeString | ( | const std::string & | str, | |
| T & | val | |||
| ) | [inline] |
Referenced by get().
| VALTYPE VRG3D::ConfigMap::get | ( | std::string | keyString, | |
| const VALTYPE & | defaultVal | |||
| ) | [inline] |
References containsKey(), getValue(), and retypeString().
| std::string VRG3D::ConfigMap::get | ( | QUOTED_STRING | keyString, | |
| QUOTED_STRING | defaultVal | |||
| ) | [inline] |
References containsKey(), getValue(), and VRG3D::replaceEnvVars().
| std::string VRG3D::ConfigMap::get | ( | QUOTED_STRING | keyString, | |
| std::string | defaultVal | |||
| ) | [inline] |
References containsKey(), getValue(), and VRG3D::replaceEnvVars().
| std::string VRG3D::ConfigMap::get | ( | std::string | keyString, | |
| QUOTED_STRING | defaultVal | |||
| ) | [inline] |
References containsKey(), getValue(), and VRG3D::replaceEnvVars().
| std::string VRG3D::ConfigMap::get | ( | std::string | keyString, | |
| std::string | defaultVal | |||
| ) | [inline] |
References containsKey(), getValue(), and VRG3D::replaceEnvVars().
| bool VRG3D::ConfigMap::containsKey | ( | const std::string & | keyString | ) |
Referenced by get().
| std::string VRG3D::ConfigMap::getValue | ( | const std::string & | keyString | ) |
Referenced by get().
| void VRG3D::ConfigMap::set | ( | const std::string & | key, | |
| const std::string & | value | |||
| ) |
| void VRG3D::ConfigMap::debugPrint | ( | ) |
1.5.6