- Timestamp:
- Aug 23, 2015, 11:57:53 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/ApplicationPaths.h
r10509 r10547 49 49 The ApplicationPaths class is a singleton which provides static paths of the application. 50 50 @details 51 The class provides information about the executable, root and module path.51 The class provides information about the executable, root and module/plugin path. 52 52 It determines those by the use of platform specific functions. 53 53 @remarks … … 63 63 /** 64 64 @brief 65 Retrieves the executable path and sets all hard coded fixed paths (currently only the module path)65 Retrieves the executable path and sets all hard coded fixed paths (currently only the module and the plugin paths) 66 66 Also checks for "orxonox_dev_build.keep_me" in the executable directory. 67 67 If found it means that this is not an installed run, hence we … … 82 82 static const boost::filesystem::path& getModulePath() 83 83 { return getInstance().modulePath_; } 84 //! Returns the path to the plugins as boost::filesystem::path 85 static const boost::filesystem::path& getPluginPath() 86 { return getInstance().pluginPath_; } 84 87 85 88 //! Returns the path to the root folder as std::string … … 89 92 //! Returns the path to the modules as std::string 90 93 static std::string getModulePathString(); 94 //! Returns the path to the plugins as std::string 95 static std::string getPluginPathString(); 91 96 92 97 //! Return true for runs in the build directory (not installed) … … 95 100 //! Returns a list with all modules declared by a *.module file in the module folder. 96 101 std::vector<std::string> getModulePaths(); 102 //! Returns a list with all plugins declared by a *.plugin file in the plugin folder. 103 std::vector<std::string> getPluginPaths(); 97 104 98 105 private: 99 106 ApplicationPaths(const ApplicationPaths&); //!< Don't use (undefined symbol) 107 108 std::vector<std::string> getModuleOrPluginPaths(boost::filesystem::path& directory, const std::string& extension); 100 109 101 110 //! Path to the parent directory of the ones above if program was installed with relative paths … … 103 112 boost::filesystem::path& executablePath_; //!< Path to the executable 104 113 boost::filesystem::path& modulePath_; //!< Path to the modules 114 boost::filesystem::path& pluginPath_; //!< Path to the plugins 105 115 106 116 bool bBuildDirectoryRun_; //!< True for runs in the build directory (not installed)
Note: See TracChangeset
for help on using the changeset viewer.