34 #ifndef _ApplicationPaths_H__ 35 #define _ApplicationPaths_H__ 77 {
return getInstance().rootPath_; }
80 {
return getInstance().executablePath_; }
83 {
return getInstance().modulePath_; }
86 {
return getInstance().pluginPath_; }
101 std::map<std::string, std::string> getModulePaths();
103 std::map<std::string, std::string> getPluginPaths();
The ApplicationPaths class is a singleton which provides static paths of the application.
Definition: ApplicationPaths.h:57
Shared library macros, enums, constants and forward declarations for the core library ...
::std::string string
Definition: gtest-port.h:756
static bool buildDirectoryRun()
Return true for runs in the build directory (not installed)
Definition: ApplicationPaths.h:98
Definition: CorePrereqs.h:316
boost::filesystem::path & executablePath_
Path to the executable.
Definition: ApplicationPaths.h:114
boost::filesystem::path & modulePath_
Path to the modules.
Definition: ApplicationPaths.h:115
Base for singleton classes.
Definition: Singleton.h:114
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
#define _CoreExport
Definition: CorePrereqs.h:61
static ApplicationPaths * singletonPtr_s
Static pointer to the singleton.
Definition: ApplicationPaths.h:119
static const boost::filesystem::path & getModulePath()
Returns the path to the modules as boost::filesystem::path.
Definition: ApplicationPaths.h:82
Definition of the Singleton template that is used as base class for classes that allow only one insta...
boost::filesystem::path & pluginPath_
Path to the plugins.
Definition: ApplicationPaths.h:116
bool bBuildDirectoryRun_
True for runs in the build directory (not installed)
Definition: ApplicationPaths.h:118
static const boost::filesystem::path & getExecutablePath()
Returns the path to the executable folder as boost::filesystem::path.
Definition: ApplicationPaths.h:79
static const boost::filesystem::path & getPluginPath()
Returns the path to the plugins as boost::filesystem::path.
Definition: ApplicationPaths.h:85
static const boost::filesystem::path & getRootPath()
Returns the path to the root folder as boost::filesystem::path.
Definition: ApplicationPaths.h:76
boost::filesystem::path & rootPath_
Path to the parent directory of the ones above if program was installed with relative paths...
Definition: ApplicationPaths.h:113