![]() |
OGRE-Next 3.0.0
Object-Oriented Graphics Rendering Engine
|
Class for quickly loading settings from a text file. More...
#include <OgreConfigFile.h>
Inheritance diagram for Ogre::ConfigFile:Public Types | |
| typedef MapIterator< SettingsBySection > | SectionIterator |
| typedef map< String, SettingsMultiMap * >::type | SettingsBySection |
| Gets an iterator for stepping through all the keys / values in the file. | |
| typedef MapIterator< SettingsMultiMap > | SettingsIterator |
| typedef multimap< String, String >::type | SettingsMultiMap |
Public Member Functions | |
| ConfigFile () | |
| virtual | ~ConfigFile () |
| void | clear () |
| Clear the settings. | |
| StringVector | getMultiSetting (const String &key, const String §ion=BLANKSTRING) const |
| Gets all settings from the file with the named key. | |
| SectionIterator | getSectionIterator () |
| Get an iterator over all the available sections in the config file. | |
| String | getSetting (const String &key, const String §ion=BLANKSTRING, const String &defaultValue=BLANKSTRING) const |
| Gets the first setting from the file with the named key. | |
| SettingsIterator | getSettingsIterator (const String §ion=BLANKSTRING) |
| Get an iterator over all the available settings in a section. | |
| void | load (const DataStreamPtr &stream, const String &separators="\t:=", bool trimWhitespace=true) |
| load from a data stream | |
| void | load (const String &filename, const String &resourceGroup, const String &separators="\t:=", bool trimWhitespace=true) |
| load from a filename (using resource group locations) | |
| void | load (const String &filename, const String &separators="\t:=", bool trimWhitespace=true) |
| load from a filename (not using resource group locations) | |
| void | loadDirect (const String &filename, const String &separators="\t:=", bool trimWhitespace=true) |
| load from a filename (not using resource group locations) | |
| void | loadFromResourceSystem (const String &filename, const String &resourceGroup, const String &separators="\t:=", bool trimWhitespace=true) |
| load from a filename (using resource group locations) | |
Class for quickly loading settings from a text file.
| typedef map<String,SettingsMultiMap*>::type Ogre::ConfigFile::SettingsBySection |
Gets an iterator for stepping through all the keys / values in the file.
| typedef multimap<String,String>::type Ogre::ConfigFile::SettingsMultiMap |
| Ogre::ConfigFile::ConfigFile | ( | ) |
|
virtual |
| void Ogre::ConfigFile::clear | ( | ) |
Clear the settings.
| StringVector Ogre::ConfigFile::getMultiSetting | ( | const String & | key, |
| const String & | section = BLANKSTRING ) const |
Gets all settings from the file with the named key.
References Ogre::BLANKSTRING.
| SectionIterator Ogre::ConfigFile::getSectionIterator | ( | ) |
Get an iterator over all the available sections in the config file.
| String Ogre::ConfigFile::getSetting | ( | const String & | key, |
| const String & | section = BLANKSTRING, | ||
| const String & | defaultValue = BLANKSTRING ) 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 |
References Ogre::BLANKSTRING.
| SettingsIterator Ogre::ConfigFile::getSettingsIterator | ( | const String & | section = BLANKSTRING | ) |
Get an iterator over all the available settings in a section.
References Ogre::BLANKSTRING.
| void Ogre::ConfigFile::load | ( | const DataStreamPtr & | stream, |
| const String & | separators = "\t:=", | ||
| bool | trimWhitespace = true ) |
load from a data stream
| void Ogre::ConfigFile::load | ( | const String & | filename, |
| const String & | resourceGroup, | ||
| const String & | separators = "\t:=", | ||
| bool | trimWhitespace = true ) |
load from a filename (using resource group locations)
| void Ogre::ConfigFile::load | ( | const String & | filename, |
| const String & | separators = "\t:=", | ||
| bool | trimWhitespace = true ) |
load from a filename (not using resource group locations)
| void Ogre::ConfigFile::loadDirect | ( | const String & | filename, |
| const String & | separators = "\t:=", | ||
| bool | trimWhitespace = true ) |
load from a filename (not using resource group locations)
| void Ogre::ConfigFile::loadFromResourceSystem | ( | const String & | filename, |
| const String & | resourceGroup, | ||
| const String & | separators = "\t:=", | ||
| bool | trimWhitespace = true ) |
load from a filename (using resource group locations)