Settings management (can change during runtime)
More...
#include <settings.hpp>
|
void | clear () |
| clears all settings and default settings More...
|
|
void | loadDefault (const std::string &file) |
| load file as the default settings (can be overridden by user settings) More...
|
|
void | loadUser (const std::string &file) |
| load file as user settings More...
|
|
void | saveUser (const std::string &file) |
| save user settings to file More...
|
|
|
static const CategorySettingVector | apply () |
| returns the list of changed settings and then clears it More...
|
|
static int | getInt (const std::string &setting, const std::string &category) |
|
static float | getFloat (const std::string &setting, const std::string &category) |
|
static std::string | getString (const std::string &setting, const std::string &category) |
|
static bool | getBool (const std::string &setting, const std::string &category) |
|
static void | setInt (const std::string &setting, const std::string &category, const int value) |
|
static void | setFloat (const std::string &setting, const std::string &category, const float value) |
|
static void | setString (const std::string &setting, const std::string &category, const std::string &value) |
|
static void | setBool (const std::string &setting, const std::string &category, const bool value) |
|
Settings management (can change during runtime)
returns the list of changed settings and then clears it
void Settings::Manager::clear |
( |
| ) |
|
clears all settings and default settings
bool Settings::Manager::getBool |
( |
const std::string & |
setting, |
|
|
const std::string & |
category |
|
) |
| |
|
static |
float Settings::Manager::getFloat |
( |
const std::string & |
setting, |
|
|
const std::string & |
category |
|
) |
| |
|
static |
int Settings::Manager::getInt |
( |
const std::string & |
setting, |
|
|
const std::string & |
category |
|
) |
| |
|
static |
std::string Settings::Manager::getString |
( |
const std::string & |
setting, |
|
|
const std::string & |
category |
|
) |
| |
|
static |
void Settings::Manager::loadDefault |
( |
const std::string & |
file | ) |
|
load file as the default settings (can be overridden by user settings)
void Settings::Manager::loadUser |
( |
const std::string & |
file | ) |
|
load file as user settings
void Settings::Manager::saveUser |
( |
const std::string & |
file | ) |
|
save user settings to file
void Settings::Manager::setBool |
( |
const std::string & |
setting, |
|
|
const std::string & |
category, |
|
|
const bool |
value |
|
) |
| |
|
static |
void Settings::Manager::setFloat |
( |
const std::string & |
setting, |
|
|
const std::string & |
category, |
|
|
const float |
value |
|
) |
| |
|
static |
void Settings::Manager::setInt |
( |
const std::string & |
setting, |
|
|
const std::string & |
category, |
|
|
const int |
value |
|
) |
| |
|
static |
void Settings::Manager::setString |
( |
const std::string & |
setting, |
|
|
const std::string & |
category, |
|
|
const std::string & |
value |
|
) |
| |
|
static |
tracks all the settings that were changed since the last apply() call
The documentation for this class was generated from the following files:
- /home/travis/build/OpenMW/openmw/components/settings/settings.hpp
- /home/travis/build/OpenMW/openmw/components/settings/settings.cpp