Orxonox
0.0.5 Codename: Arcturus
|
Manages the different config files (settings, calibration, etc). More...
#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/core/config/ConfigFileManager.h>
Public Member Functions | |
ConfigFileManager () | |
Constructor: Initializes the array of config files with nullptr. More... | |
~ConfigFileManager () | |
Destructor: Deletes the config files. More... | |
ConfigFile * | getConfigFile (ConfigFileType::Value type) |
Returns the config file of a given type (settings, calibration, etc.) More... | |
void | setFilename (ConfigFileType::Value type, const std::string &filename) |
Defines the file-name for the config file of a given type (settings, calibration, etc.). More... | |
Private Member Functions | |
ConfigFileManager (const ConfigFileManager &)=delete | |
ConfigFileManager & | operator= (const ConfigFileManager &)=delete |
Private Attributes | |
std::array< ConfigFile *, 3 > | configFiles_ |
Stores the config files for each type in an array (must have the same size like ConfigFileType::Value) More... | |
Static Private Attributes | |
static ConfigFileManager * | singletonPtr_s = nullptr |
Stores the singleton-pointer. More... | |
Friends | |
class | Singleton< ConfigFileManager > |
Additional Inherited Members | |
![]() | |
static bool | exists () |
Tells whether the singleton has been created. More... | |
static ConfigFileManager & | getInstance () |
Returns a reference to the singleton instance. More... | |
![]() | |
Singleton () | |
Constructor sets the singleton instance pointer. More... | |
virtual | ~Singleton () |
Destructor resets the singleton instance pointer. More... | |
Manages the different config files (settings, calibration, etc).
Implemented as Singleton.
orxonox::ConfigFileManager::ConfigFileManager | ( | ) |
Constructor: Initializes the array of config files with nullptr.
orxonox::ConfigFileManager::~ConfigFileManager | ( | ) |
Destructor: Deletes the config files.
|
privatedelete |
|
inline |
Returns the config file of a given type (settings, calibration, etc.)
|
privatedelete |
void orxonox::ConfigFileManager::setFilename | ( | ConfigFileType::Value | type, |
const std::string & | filename | ||
) |
Defines the file-name for the config file of a given type (settings, calibration, etc.).
|
friend |
|
private |
Stores the config files for each type in an array (must have the same size like ConfigFileType::Value)
|
staticprivate |
Stores the singleton-pointer.