OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
Settings::Manager Class Reference

Settings management (can change during runtime) More...

#include <settings.hpp>

Collaboration diagram for Settings::Manager:

Public Member Functions

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 Public Member Functions

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)
 

Static Public Attributes

static CategorySettingValueMap mDefaultSettings = CategorySettingValueMap()
 
static CategorySettingValueMap mUserSettings = CategorySettingValueMap()
 
static CategorySettingVector mChangedSettings = CategorySettingVector()
 tracks all the settings that were changed since the last apply() call More...
 

Detailed Description

Settings management (can change during runtime)

Member Function Documentation

const CategorySettingVector Settings::Manager::apply ( )
static

returns the list of changed settings and then clears it

Here is the caller graph for this function:

void Settings::Manager::clear ( )

clears all settings and default settings

bool Settings::Manager::getBool ( const std::string &  setting,
const std::string &  category 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

float Settings::Manager::getFloat ( const std::string &  setting,
const std::string &  category 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

int Settings::Manager::getInt ( const std::string &  setting,
const std::string &  category 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

std::string Settings::Manager::getString ( const std::string &  setting,
const std::string &  category 
)
static

Here is the caller graph for this function:

void Settings::Manager::loadDefault ( const std::string &  file)

load file as the default settings (can be overridden by user settings)

Here is the call graph for this function:

Here is the caller graph for this function:

void Settings::Manager::loadUser ( const std::string &  file)

load file as user settings

Here is the call graph for this function:

Here is the caller graph for this function:

void Settings::Manager::saveUser ( const std::string &  file)

save user settings to file

Here is the call graph for this function:

Here is the caller graph for this function:

void Settings::Manager::setBool ( const std::string &  setting,
const std::string &  category,
const bool  value 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

void Settings::Manager::setFloat ( const std::string &  setting,
const std::string &  category,
const float  value 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

void Settings::Manager::setInt ( const std::string &  setting,
const std::string &  category,
const int  value 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

void Settings::Manager::setString ( const std::string &  setting,
const std::string &  category,
const std::string &  value 
)
static

Here is the caller graph for this function:

Member Data Documentation

CategorySettingVector Settings::Manager::mChangedSettings = CategorySettingVector()
static

tracks all the settings that were changed since the last apply() call

CategorySettingValueMap Settings::Manager::mDefaultSettings = CategorySettingValueMap()
static
CategorySettingValueMap Settings::Manager::mUserSettings = CategorySettingValueMap()
static

The documentation for this class was generated from the following files: