Public Types | |
| typedef std::map< std::string, SettingsMultiMap * > | SettingsBySection |
Public Member Functions | |
| void | load (const std::string &filename, const std::string &separators="\t:=", bool trimWhitespace=true) |
| load from a filename (not using resource group locations) | |
| std::string | getSetting (const std::string &key, const std::string §ion="", const std::string &defaultValue="") const |
| BRTStringVector | getMultiSetting (const std::string &key, const std::string §ion="") const |
| void | clear (void) |
| typedef std::map<std::string, SettingsMultiMap*> BehaveRT::UtilityConfigFile::SettingsBySection |
Gets an iterator for stepping through all the keys / values in the file.
| void BehaveRT::UtilityConfigFile::clear | ( | void | ) |
Clear the settings
| BRTStringVector BehaveRT::UtilityConfigFile::getMultiSetting | ( | const std::string & | key, | |
| const std::string & | section = "" | |||
| ) | const |
Gets all settings from the file with the named key.
| std::string BehaveRT::UtilityConfigFile::getSetting | ( | const std::string & | key, | |
| const std::string & | section = "", |
|||
| const std::string & | defaultValue = "" | |||
| ) | const |
Gets the first setting from the file with the named key.
| key | The name of the setting | |
| section | The name of the section it must be in (if any) | |
| defaultValue | The value to return if the setting is not found |
1.5.7.1