Changeset 3196 for code/trunk/src/core/Core.h
- Timestamp:
- Jun 20, 2009, 9:20:47 AM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/pch (added) merged: 3114-3118,3124-3125,3127-3131,3133,3138-3194
- Property svn:mergeinfo changed
-
code/trunk/src/core/Core.h
r2896 r3196 29 29 30 30 /** 31 @file 32 @brief Declaration of the Core class. 33 31 @file 32 @brief 33 Declaration of the Core class. 34 @details 34 35 The Core class is a singleton, only used to configure some variables 35 36 in the core through the config-file. … … 45 46 #include "util/OutputHandler.h" 46 47 47 // boost::filesystem header has quite a large tail, use forward declaration48 namespace boost { namespace filesystem49 {50 struct path_traits;51 template<class String, class Traits> class basic_path;52 typedef basic_path< std::string, path_traits> path;53 } }54 55 48 namespace orxonox 56 49 { 57 //! The Core class is a singleton, only used to configure some config-values. 50 /** 51 @brief 52 The Core class is a singleton used to configure the program basics. 53 @details 54 The class provides information about the media, config and log path. 55 It determines those by the use of platform specific functions. 56 */ 58 57 class _CoreExport Core : public OrxonoxClass 59 58 { 60 59 public: 60 /** 61 @brief 62 Determines the executable path, checks for build directory runs, creates 63 the output directories and sets up the other core library singletons. 64 @throws 65 GeneralException 66 */ 61 67 Core(); 62 68 ~Core(); … … 76 82 static void tsetMediaPath(const std::string& path) 77 83 { assert(singletonRef_s); singletonRef_s->_tsetMediaPath(path); } 84 //! Returns the path to the config files as boost::filesystem::path 78 85 static const boost::filesystem::path& getMediaPath(); 86 //! Returns the path to the config files as boost::filesystem::path 79 87 static const boost::filesystem::path& getConfigPath(); 88 //! Returns the path to the log files as boost::filesystem::path 80 89 static const boost::filesystem::path& getLogPath(); 90 //! Returns the path to the data files as std::string 81 91 static std::string getMediaPathString(); 92 //! Returns the path to the config files as std::string 82 93 static std::string getConfigPathString(); 94 //! Returns the path to the log files as std::string 83 95 static std::string getLogPathString(); 84 96 85 97 private: 86 Core(const Core&); 98 Core(const Core&); //!< Don't use (undefined symbol) 87 99 88 100 void checkDevBuild();
Note: See TracChangeset
for help on using the changeset viewer.