Manages the database to store configuration data. More...
Public Types | |
|
typedef boost::shared_ptr < ConfigManager > | SharedPtr |
Public Member Functions | |
| std::string | getConfigValue (const std::string &a_key, const std::string &a_name, const std::string &a_defaultVal) |
| getConfigValue | |
| bool | doesConfigExist (const std::string &a_key, const std::string &a_name) |
| doesConfigExist | |
| void | setConfigValue (const std::string &a_key, const std::string &a_name, const std::string &a_value) |
| setConfigValue | |
Manages the database to store configuration data.
| bool Tonido::Data::ConfigManager::doesConfigExist | ( | const std::string & | a_key, |
| const std::string & | a_name | ||
| ) |
doesConfigExist
Indicates if the given configuration setting exists for a given key, name
| [in] | a_key | represents the key part of the key, name pair used to identify a value |
| [in] | a_name | represents the name in the key, name pair |
| std::string Tonido::Data::ConfigManager::getConfigValue | ( | const std::string & | a_key, |
| const std::string & | a_name, | ||
| const std::string & | a_defaultVal | ||
| ) |
getConfigValue
Gets the config value associated with the specified key and name
| [in] | a_key | represents the key part of the key, name pair used to identify a value |
| [in] | a_name | represents the name in the key, name pair |
| [in] | a_defaultVal | represents the default value if the setting cannot be found |
| void Tonido::Data::ConfigManager::setConfigValue | ( | const std::string & | a_key, |
| const std::string & | a_name, | ||
| const std::string & | a_value | ||
| ) |
setConfigValue
Sets the config value associated with the specified key, name
| [in] | a_key | represents the key part of the key, name pair used to identify a value |
| [in] | a_name | represents the name in the key, name pair |
| [in] | a_value | represents the value to be set |