Public Member Functions | |
CoreConfiguration () | |
void | debugLevelChanged () |
Callback function if the debug level has changed. | |
void | initialise () |
void | initializeRandomNumberGenerator () |
void | languageChanged () |
Callback function if the language has changed. | |
void | mediaPathChanged () |
Callback function if the media path has changed. | |
void | resetLanguage () |
Sets the language in the config-file back to the default. | |
void | setConfigValues () |
Function to collect the SetConfigValue-macro calls. | |
void | tsetMediaPath (const std::string &path) |
Temporary sets the media path. | |
Public Attributes | |
bool | bInitializeRandomNumberGenerator_ |
If true, srand(time(0)) is called. | |
boost::filesystem::path | configPath_ |
Path to the config file folder. | |
boost::filesystem::path | executablePath_ |
Path to the executable. | |
std::string | language_ |
The language. | |
boost::filesystem::path | logPath_ |
Path to the log file folder. | |
boost::filesystem::path | mediaPath_ |
Path to the media file folder. | |
std::string | mediaPathString_ |
Path to the data/media file folder as string. | |
boost::filesystem::path | rootPath_ |
Path to the parent directory of the ones above if program was installed with relativ pahts. | |
int | softDebugLevel_ |
The debug level. | |
int | softDebugLevelConsole_ |
The debug level for the console. | |
int | softDebugLevelLogfile_ |
The debug level for the logfile. | |
int | softDebugLevelShell_ |
The debug level for the ingame shell. |
orxonox::CoreConfiguration::CoreConfiguration | ( | ) | [inline] |
void orxonox::CoreConfiguration::debugLevelChanged | ( | ) | [inline] |
Callback function if the debug level has changed.
References orxonox::OutputHandler::LD_All, orxonox::OutputHandler::LD_Console, orxonox::OutputHandler::LD_Logfile, orxonox::OutputHandler::LD_Shell, orxonox::OutputHandler::setSoftDebugLevel(), softDebugLevel_, softDebugLevelConsole_, softDebugLevelLogfile_, and softDebugLevelShell_.
Referenced by setConfigValues().
void orxonox::CoreConfiguration::initialise | ( | ) | [inline] |
References orxonox::CommandLine::getArgument(), orxonox::CommandLine::getValue(), RegisterRootObject, setConfigValues(), and tsetMediaPath().
Referenced by orxonox::Core::Core().
void orxonox::CoreConfiguration::initializeRandomNumberGenerator | ( | ) | [inline] |
void orxonox::CoreConfiguration::languageChanged | ( | ) | [inline] |
Callback function if the language has changed.
References orxonox::Language::getLanguage(), and orxonox::Language::readTranslatedLanguageFile().
Referenced by setConfigValues().
void orxonox::CoreConfiguration::mediaPathChanged | ( | ) | [inline] |
Callback function if the media path has changed.
References mediaPath_, and mediaPathString_.
Referenced by setConfigValues().
void orxonox::CoreConfiguration::resetLanguage | ( | ) | [inline] |
Sets the language in the config-file back to the default.
References language_, and ResetConfigValue.
Referenced by orxonox::Core::resetLanguage().
void orxonox::CoreConfiguration::setConfigValues | ( | ) | [inline] |
Function to collect the SetConfigValue-macro calls.
Reimplemented from orxonox::OrxonoxClass.
References bInitializeRandomNumberGenerator_, debugLevelChanged(), orxonox::Language::getLanguage(), initializeRandomNumberGenerator(), language_, languageChanged(), mediaPath_, mediaPathChanged(), mediaPathString_, SetConfigValue, softDebugLevelConsole_, softDebugLevelLogfile_, and softDebugLevelShell_.
Referenced by initialise().
void orxonox::CoreConfiguration::tsetMediaPath | ( | const std::string & | path | ) | [inline] |
Temporary sets the media path.
path | The new media path |
References mediaPathString_, and ModifyConfigValue.
Referenced by initialise(), and orxonox::Core::tsetMediaPath().
If true, srand(time(0)) is called.
Referenced by initializeRandomNumberGenerator(), and setConfigValues().
Path to the config file folder.
Referenced by orxonox::Core::checkDevBuild(), orxonox::Core::createDirectories(), orxonox::Core::getConfigPath(), and orxonox::Core::getConfigPathString().
Path to the executable.
Referenced by orxonox::Core::checkDevBuild(), orxonox::Core::Core(), and orxonox::Core::setExecutablePath().
Path to the log file folder.
Referenced by orxonox::Core::checkDevBuild(), orxonox::Core::createDirectories(), orxonox::Core::getLogPath(), and orxonox::Core::getLogPathString().
Path to the media file folder.
Referenced by orxonox::Core::checkDevBuild(), orxonox::Core::getMediaPath(), orxonox::Core::getMediaPathString(), mediaPathChanged(), and setConfigValues().
Path to the data/media file folder as string.
Referenced by mediaPathChanged(), setConfigValues(), and tsetMediaPath().
Path to the parent directory of the ones above if program was installed with relativ pahts.
Referenced by orxonox::Core::checkDevBuild().
The debug level.
Referenced by debugLevelChanged(), orxonox::Core::getSoftDebugLevel(), and orxonox::Core::setSoftDebugLevel().
The debug level for the console.
Referenced by debugLevelChanged(), orxonox::Core::getSoftDebugLevel(), setConfigValues(), and orxonox::Core::setSoftDebugLevel().
The debug level for the logfile.
Referenced by debugLevelChanged(), orxonox::Core::getSoftDebugLevel(), setConfigValues(), and orxonox::Core::setSoftDebugLevel().
The debug level for the ingame shell.
Referenced by debugLevelChanged(), orxonox::Core::getSoftDebugLevel(), setConfigValues(), and orxonox::Core::setSoftDebugLevel().