Changeset 5836 for code/branches/core5/src/libraries/core/Core.h
- Timestamp:
- Sep 30, 2009, 12:00:16 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/libraries/core/Core.h
r5738 r5836 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 static void tsetExternalDataPath(const std::string& path);88 //! Returns the path to the data files as boost::filesystem::path89 static const boost::filesystem::path& getDataPath();90 //! Returns the path to the external data files as boost::filesystem::path91 static const boost::filesystem::path& getExternalDataPath();92 //! Returns the path to the config files as boost::filesystem::path93 static const boost::filesystem::path& getConfigPath();94 //! Returns the path to the log files as boost::filesystem::path95 static const boost::filesystem::path& getLogPath();96 //! Returns the path to the root folder as boost::filesystem::path97 static const boost::filesystem::path& getRootPath();98 //! Returns the path to the data files as std::string99 static std::string getDataPathString();100 //! Returns the path to the external data files as std::string101 static std::string getExternalDataPathString();102 //! Returns the path to the config files as std::string103 static std::string getConfigPathString();104 //! Returns the path to the log files as std::string105 static std::string getLogPathString();106 //! Returns the path to the root folder as std::string107 static std::string getRootPathString();108 109 static bool isDevelopmentRun() { return getInstance().bDevRun_; }110 111 75 private: 112 76 Core(const Core&); //!< Don't use (undefined symbol) … … 118 82 void unloadGraphics(); 119 83 120 void setFixedPaths();121 void setConfigurablePaths();122 84 void setThreadAffinity(int limitToCPU); 123 85 124 86 // Mind the order for the destruction! 87 scoped_ptr<PathConfig> pathConfig_; 125 88 scoped_ptr<DynLibManager> dynLibManager_; 126 89 scoped_ptr<SignalHandler> signalHandler_; … … 138 101 scoped_ptr<GUIManager> guiManager_; //!< Interface to GUI 139 102 140 bool bDevRun_; //!< True for runs in the build directory (not installed)141 103 bool bGraphicsLoaded_; 142 143 104 static Core* singletonPtr_s; 144 105 };
Note: See TracChangeset
for help on using the changeset viewer.