Changeset 6038 for sandbox/src/libraries/core/Core.h
- Timestamp:
- Nov 5, 2009, 9:22:22 PM (14 years ago)
- Location:
- sandbox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox
- Property svn:mergeinfo changed
-
sandbox/src/libraries/core/Core.h
r5782 r6038 28 28 */ 29 29 30 /**31 @file32 @brief33 Declaration of the Core class.34 @details35 The Core class is a singleton, only used to configure some variables36 in the core through the config-file.37 */38 39 30 #ifndef _Core_H__ 40 31 #define _Core_H__ … … 55 46 @brief 56 47 The Core class is a singleton used to configure the program basics. 57 @details58 The class provides information about the data, config and log path.59 It determines those by the use of platform specific functions.60 48 @remark 61 49 You should only create this singleton once because it destroys the identifiers! … … 85 73 static void resetLanguage(); 86 74 87 //! Returns the path to the data files as boost::filesystem::path88 static const boost::filesystem::path& getDataPath();89 //! Returns the path to the config files as boost::filesystem::path90 static const boost::filesystem::path& getConfigPath();91 //! Returns the path to the log files as boost::filesystem::path92 static const boost::filesystem::path& getLogPath();93 //! Returns the path to the root folder as boost::filesystem::path94 static const boost::filesystem::path& getRootPath();95 //! Returns the path to the data files as std::string96 static std::string getDataPathString();97 //! Returns the path to the config files as std::string98 static std::string getConfigPathString();99 //! Returns the path to the log files as std::string100 static std::string getLogPathString();101 //! Returns the path to the root folder as std::string102 static std::string getRootPathString();103 104 static bool isDevelopmentRun() { return getInstance().bDevRun_; }105 106 75 private: 107 76 Core(const Core&); //!< Don't use (undefined symbol) … … 110 79 void postUpdate(const Clock& time); 111 80 112 void setFixedPaths();113 void setConfigurablePaths();114 81 void setThreadAffinity(int limitToCPU); 115 82 116 83 // Mind the order for the destruction! 84 scoped_ptr<PathConfig> pathConfig_; 117 85 scoped_ptr<DynLibManager> dynLibManager_; 118 86 scoped_ptr<SignalHandler> signalHandler_; … … 122 90 scoped_ptr<CoreConfiguration> configuration_; 123 91 124 bool bDevRun_; //!< True for runs in the build directory (not installed)125 126 92 static Core* singletonPtr_s; 127 93 };
Note: See TracChangeset
for help on using the changeset viewer.