orxonox::CoreConfiguration Class Reference

Helper class for the Core singleton: we cannot derive Core from OrxonoxClass because we need to handle the Identifier destruction in the Core destructor. More...

Inheritance diagram for orxonox::CoreConfiguration:

orxonox::OrxonoxClass

List of all members.

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.


Detailed Description

Helper class for the Core singleton: we cannot derive Core from OrxonoxClass because we need to handle the Identifier destruction in the Core destructor.

Constructor & Destructor Documentation

orxonox::CoreConfiguration::CoreConfiguration (  )  [inline]


Member Function Documentation

void orxonox::CoreConfiguration::debugLevelChanged (  )  [inline]

void orxonox::CoreConfiguration::initialise (  )  [inline]

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]

void orxonox::CoreConfiguration::tsetMediaPath ( const std::string path  )  [inline]

Temporary sets the media path.

Parameters:
path The new media path

References mediaPathString_, and ModifyConfigValue.

Referenced by initialise(), and orxonox::Core::tsetMediaPath().


Member Data Documentation

If true, srand(time(0)) is called.

Referenced by initializeRandomNumberGenerator(), 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 documentation for this class was generated from the following file:

Generated on Tue Jul 28 16:22:26 2009 for Orxonox by  doxygen 1.5.6