Collaboration diagram for Mezzanine::Resource::TextSettingsFile:Public Types | |
|
typedef std::map< String, SettingsMap * >::iterator | SectionIterator |
|
typedef std::multimap< String, String >::iterator | SettingsIterator |
|
typedef std::multimap< String, String > | SettingsMap |
|
typedef std::map< String, SettingsMap * > | SettingsSectionMap |
Public Member Functions | |
| TextSettingsFile () | |
| Class constructor. | |
| ~TextSettingsFile () | |
| Class destructor. | |
| void | Clear () |
| Clears all data from this class. | |
| std::vector< String > | GetMultiSetting (const String &Key, const String &Section) |
| Gets all the values of the specified setting in the specified section. More... | |
| SectionIterator | GetSectionBegin () |
| Gets an iterator to the first section in the file. More... | |
| SectionIterator | GetSectionEnd () |
| Gets an iterator to the last section in the file. More... | |
| String | GetSetting (const String &Key, const String &Section) |
| Gets the value of the specified setting in the specified section. More... | |
| SettingsIterator | GetSettingsBegin (const String &Section) |
| Gets an iterator to the first setting in the specified Section. More... | |
| SettingsIterator | GetSettingsEnd (const String &Section) |
| Gets an iterator to the last setting in the specified Section. More... | |
| void | Load (const String &Filename, const String &Group, const String &Separators=" \t:=", bool TrimWhitespace=true) |
| Loads and parses a text file. More... | |
Protected Attributes | |
| String | FileName |
| SettingsSectionMap | Sections |
Definition at line 53 of file textsettingsfile.h.
| std::vector< String > Mezzanine::Resource::TextSettingsFile::GetMultiSetting | ( | const String & | Key, |
| const String & | Section | ||
| ) |
Gets all the values of the specified setting in the specified section.
| Key | The name of the setting to get the value for. |
| Section | The name of the section to search for the Key. |
Definition at line 138 of file textsettingsfile.cpp.
| TextSettingsFile::SectionIterator Mezzanine::Resource::TextSettingsFile::GetSectionBegin | ( | ) |
Gets an iterator to the first section in the file.
Definition at line 155 of file textsettingsfile.cpp.
| TextSettingsFile::SectionIterator Mezzanine::Resource::TextSettingsFile::GetSectionEnd | ( | ) |
Gets an iterator to the last section in the file.
Definition at line 160 of file textsettingsfile.cpp.
| String Mezzanine::Resource::TextSettingsFile::GetSetting | ( | const String & | Key, |
| const String & | Section | ||
| ) |
Gets the value of the specified setting in the specified section.
| Key | The name of the setting to get the value for. |
| Section | The name of the section to search for the Key. |
Definition at line 121 of file textsettingsfile.cpp.
| TextSettingsFile::SettingsIterator Mezzanine::Resource::TextSettingsFile::GetSettingsBegin | ( | const String & | Section) |
Gets an iterator to the first setting in the specified Section.
| Section | The name of the section desired. |
Definition at line 165 of file textsettingsfile.cpp.
| TextSettingsFile::SettingsIterator Mezzanine::Resource::TextSettingsFile::GetSettingsEnd | ( | const String & | Section) |
Gets an iterator to the last setting in the specified Section.
| Section | The name of the section desired. |
Definition at line 176 of file textsettingsfile.cpp.
| void Mezzanine::Resource::TextSettingsFile::Load | ( | const String & | Filename, |
| const String & | Group, | ||
| const String & | Separators = " \t:=", |
||
| bool | TrimWhitespace = true |
||
| ) |
Loads and parses a text file.
| Filename | The name of the file to load. |
| Group | The resource group the file is in. |
| Separators | The characters that should be observed when separating settings and their values on a single line. |
| TrimWhitespace | Whether or not to remove any white spaces before or after settings or their values. |
Definition at line 62 of file textsettingsfile.cpp.
1.8.4