34 #ifndef _SettingsConfigFile_H__ 35 #define _SettingsConfigFile_H__ 65 typedef std::multimap<std::string, std::pair<std::string, ConfigValueContainer*>>
ContainerMap;
70 virtual void load()
override;
72 void clean(
bool bCleanComments =
false);
83 {
return this->sectionNames_; }
86 {
return this->containers_.lower_bound(section); }
89 {
return this->containers_.upper_bound(section); }
94 void updateConfigValues();
The ConfigValuecontainer contains all needed information about a configurable variable.
Definition: ConfigValueContainer.h:98
static SettingsConfigFile & getInstance()
Definition: SettingsConfigFile.h:91
Shared library macros, enums, constants and forward declarations for the core library ...
::std::string string
Definition: gtest-port.h:756
This class represents a config file, which is stored on the hard-disk and contains config values in d...
Definition: ConfigFile.h:51
ContainerMap containers_
Stores all config value containers.
Definition: SettingsConfigFile.h:97
std::multimap< std::string, std::pair< std::string, ConfigValueContainer * > > ContainerMap
Definition: SettingsConfigFile.h:65
Base for singleton classes.
Definition: Singleton.h:114
ContainerMap::const_iterator getContainerLowerBound(const std::string section)
Returns the lower-bound-iterator of the config value containers for the given section.
Definition: SettingsConfigFile.h:85
Child class of ConfigFile, used to store the settings of the game.
Definition: SettingsConfigFile.h:59
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
#define _CoreExport
Definition: CorePrereqs.h:61
The MultiType can hold a value of many possible types and convert them to other types.
Definition: MultiType.h:130
ContainerMap::const_iterator getContainerUpperBound(const std::string section)
Returns the upper-bound-iterator of the config value containers for the given section.
Definition: SettingsConfigFile.h:88
Definition of the Singleton template that is used as base class for classes that allow only one insta...
static SettingsConfigFile * singletonPtr_s
The singleton pointer.
Definition: SettingsConfigFile.h:99
static T & getInstance()
Returns a reference to the singleton instance.
Definition: Singleton.h:118
std::set< std::string > sectionNames_
Stores all section names.
Definition: SettingsConfigFile.h:98
const std::set< std::string > & getSectionNames()
Returns a set containing the names of all sections in this config file.
Definition: SettingsConfigFile.h:82