Go to the documentation of this file.
28 #ifndef __ConfigFile_H__
29 #define __ConfigFile_H__
69 void load(
const String& filename,
const String& separators =
"\t:=",
bool trimWhitespace =
true);
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
vector< String >::type StringVector
MapIterator< SettingsMultiMap > SettingsIterator
SettingsIterator getSettingsIterator(const String §ion=StringUtil::BLANK)
Get an iterator over all the available settings in a section.
void loadDirect(const String &filename, const String &separators="\t:=", bool trimWhitespace=true)
load from a filename (not using resource group locations)
multimap< String, String >::type SettingsMultiMap
StringVector getMultiSetting(const String &key, const String §ion=StringUtil::BLANK) const
Gets all settings from the file with the named key.
void clear(void)
Clear the settings.
void load(const String &filename, const String &separators="\t:=", bool trimWhitespace=true)
load from a filename (not using resource group locations)
String getSetting(const String &key, const String §ion=StringUtil::BLANK, const String &defaultValue=StringUtil::BLANK) const
Gets the first setting from the file with the named key.
static const String BLANK
Constant blank string, useful for returning by ref where local does not exist.
void load(const DataStreamPtr &stream, const String &separators="\t:=", bool trimWhitespace=true)
load from a data stream
Class for quickly loading settings from a text file.
void loadFromResourceSystem(const String &filename, const String &resourceGroup, const String &separators="\t:=", bool trimWhitespace=true)
load from a filename (using resource group locations)
Concrete IteratorWrapper for nonconst access to the underlying key-value container.
map< String, SettingsMultiMap * >::type SettingsBySection
Gets an iterator for stepping through all the keys / values in the file.
SettingsBySection mSettings
MapIterator< SettingsBySection > SectionIterator
SectionIterator getSectionIterator(void)
Get an iterator over all the available sections in the config file.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.