|
Orxonox
0.0.5 Codename: Arcturus
|
The ConfigurablePaths class is a singleton used to configure different paths. More...
#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/core/ConfigurablePaths.h>
Public Member Functions | |
| ConfigurablePaths () | |
| ~ConfigurablePaths () | |
| void | setConfigurablePaths (const ApplicationPaths &applicationPaths) |
| Sets config, log and media path and creates the folders if necessary. More... | |
Static Public Member Functions | |
| static const boost::filesystem::path & | getConfigPath () |
| Returns the path to the config files as boost::filesystem::path. More... | |
| static std::string | getConfigPathString () |
| Returns the path to the config files as std::string. More... | |
| static const boost::filesystem::path & | getDataPath () |
| Returns the path to the data files as boost::filesystem::path. More... | |
| static std::string | getDataPathString () |
| Returns the path to the data files as std::string. More... | |
| static const boost::filesystem::path & | getExternalDataPath () |
| Returns the path to the external data files as boost::filesystem::path. More... | |
| static std::string | getExternalDataPathString () |
| Returns the path to the external data files as std::string. More... | |
| static const boost::filesystem::path & | getLogPath () |
| Returns the path to the log files as boost::filesystem::path. More... | |
| static std::string | getLogPathString () |
| Returns the path to the log files as std::string. More... | |
Static Public Member Functions inherited from orxonox::Singleton< ConfigurablePaths > | |
| static bool | exists () |
| Tells whether the singleton has been created. More... | |
| static ConfigurablePaths & | getInstance () |
| Returns a reference to the singleton instance. More... | |
Private Member Functions | |
| ConfigurablePaths (const ConfigurablePaths &)=delete | |
| ConfigurablePaths & | operator= (const ConfigurablePaths &)=delete |
Private Attributes | |
| boost::filesystem::path & | configPath_ |
| Path to the config files folder. More... | |
| boost::filesystem::path & | dataPath_ |
| Path to the data files folder. More... | |
| boost::filesystem::path & | externalDataPath_ |
| Path to the external data files folder. More... | |
| boost::filesystem::path & | logPath_ |
| Path to the log files folder. More... | |
Static Private Attributes | |
| static ConfigurablePaths * | singletonPtr_s = nullptr |
| Static pointer to the singleton. More... | |
Friends | |
| class | Singleton< ConfigurablePaths > |
Additional Inherited Members | |
Protected Member Functions inherited from orxonox::Singleton< ConfigurablePaths > | |
| Singleton () | |
| Constructor sets the singleton instance pointer. More... | |
| virtual | ~Singleton () |
| Destructor resets the singleton instance pointer. More... | |
The ConfigurablePaths class is a singleton used to configure different paths.
The class provides information about the data, config, and log path.
| orxonox::ConfigurablePaths::ConfigurablePaths | ( | ) |
| orxonox::ConfigurablePaths::~ConfigurablePaths | ( | ) |
|
privatedelete |
|
inlinestatic |
Returns the path to the config files as boost::filesystem::path.
|
static |
Returns the path to the config files as std::string.
|
inlinestatic |
Returns the path to the data files as boost::filesystem::path.
|
static |
Returns the path to the data files as std::string.
|
inlinestatic |
Returns the path to the external data files as boost::filesystem::path.
|
static |
Returns the path to the external data files as std::string.
|
inlinestatic |
Returns the path to the log files as boost::filesystem::path.
|
static |
Returns the path to the log files as std::string.
|
privatedelete |
| void orxonox::ConfigurablePaths::setConfigurablePaths | ( | const ApplicationPaths & | applicationPaths | ) |
Sets config, log and media path and creates the folders if necessary.
| GeneralException |
|
friend |
|
private |
Path to the config files folder.
|
private |
Path to the data files folder.
|
private |
Path to the external data files folder.
|
private |
Path to the log files folder.
|
staticprivate |
Static pointer to the singleton.
1.8.11