#include <OgreConfigFile.h>
Public Types | |
typedef MapIterator< std::multimap< String, String > > | SettingsIterator |
Public Methods | |
ConfigFile () | |
void | load (const String &filename, const String &separators="\t:=", bool trimWhitespace=true) |
String | getSetting (const String &key) const |
Gets the first setting from the file with the named key. | |
StringVector | getMultiSetting (const String &key) const |
Gets all settings from the file with the named key. | |
SettingsIterator | getSettingsIterator (void) |
Gets an iterator for stepping through all the keys / values in the file. | |
Protected Attributes | |
std::multimap< String, String > | mSettings |
This is a very simplified approach, no multiple values per key are allowed, no grouping or context is being kept etc.
By default the key/values pairs are tokenised based on a separator of Tab, the colon (:) or equals (=) character. Each key - value pair must end in a carriage return.
Definition at line 48 of file OgreConfigFile.h.
|
Definition at line 60 of file OgreConfigFile.h. Referenced by getSettingsIterator(). |
|
Definition at line 35 of file OgreConfigFile.cpp. |
|
Gets all settings from the file with the named key.
Definition at line 94 of file OgreConfigFile.cpp. References mSettings, Ogre::String, and Ogre::StringVector. Referenced by Ogre::Root::loadPlugins(). |
|
Gets the first setting from the file with the named key.
Definition at line 79 of file OgreConfigFile.cpp. References mSettings, and Ogre::String. Referenced by Ogre::TerrainSceneManager::loadConfig(), Ogre::Root::loadPlugins(), and Ogre::Root::restoreConfig(). |
|
Gets an iterator for stepping through all the keys / values in the file.
Definition at line 114 of file OgreConfigFile.cpp. References mSettings, and SettingsIterator. Referenced by Ogre::TerrainSceneManager::loadConfig(), and Ogre::Root::restoreConfig(). |
|
Definition at line 39 of file OgreConfigFile.cpp. References Except, mSettings, and Ogre::String. Referenced by Ogre::TerrainSceneManager::loadConfig(), Ogre::Root::loadPlugins(), and Ogre::Root::restoreConfig(). |
|
Definition at line 65 of file OgreConfigFile.h. Referenced by getMultiSetting(), getSetting(), getSettingsIterator(), and load(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:50:51 2004