Changeset 2702 for code/branches/buildsystem3/src/core/Core.h
- Timestamp:
- Feb 27, 2009, 2:13:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem3/src/core/Core.h
r2690 r2702 44 44 #include "util/OutputHandler.h" 45 45 46 // Only allow main to access setDevBuild, so we need a forward declaration46 // Only allow main to access postMainInitialisation, so we need a forward declaration 47 47 int main(int, char**); 48 // boost::filesystem header has quite a large tail, use forward declaration 49 namespace boost { namespace filesystem 50 { 51 struct path_traits; 52 template<class String, class Traits> class basic_path; 53 typedef basic_path< std::string, path_traits> path; 54 } } 48 55 49 56 namespace orxonox … … 70 77 static void tsetMediaPath(const std::string& path) 71 78 { assert(singletonRef_s); singletonRef_s->_tsetMediaPath(path); } 72 static const std::string& getMediaPath() { return mediaPath_s; } 73 static const std::string& getConfigPath() { return configPath_s; } 74 static const std::string& getLogPath() { return logPath_s; } 79 static const boost::filesystem::path& getMediaPath(); 80 static const boost::filesystem::path& getConfigPath(); 81 static const boost::filesystem::path& getLogPath(); 82 static std::string getMediaPathString(); 83 static std::string getConfigPathString(); 84 static std::string getLogPathString(); 85 static std::string getMediaPathPOSIXString(); 86 static std::string getConfigPathPOSIXString(); 87 static std::string getLogPathPOSIXString(); 75 88 76 89 // fast access global variables. … … 95 108 void _tsetMediaPath(const std::string& path); 96 109 110 static void postMainInitialisation(); 111 static void checkDevBuild(); 112 static void setExecutablePath(); 97 113 static void createDirectories(); 98 static void checkDevBuild();99 114 100 115 int softDebugLevel_; //!< The debug level … … 104 119 std::string language_; //!< The language 105 120 bool bInitializeRandomNumberGenerator_; //!< If true, srand(time(0)) is called 121 std::string mediaPathString_; //!< Path to the data/media file folder as string 106 122 107 123 static bool bShowsGraphics_s; //!< global variable that tells whether to show graphics … … 112 128 113 129 static bool isDevBuild_s; //!< True for builds in the build directory (not installed) 114 static std::string configPath_s; //!< Path to the config file folder115 static std::string logPath_s; //!< Path to the log file folder116 static std::string mediaPath_s; //!< Path to the data/media file folder117 130 118 131 static Core* singletonRef_s;
Note: See TracChangeset
for help on using the changeset viewer.