1 #ifndef COMPONENTS_FILES_FIXEDPATH_HPP
2 #define COMPONENTS_FILES_FIXEDPATH_HPP
5 #include <boost/filesystem.hpp>
7 #if defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__)
10 namespace Files {
typedef LinuxPath TargetPathType; }
13 namespace Files {
typedef AndroidPath TargetPathType; }
15 #elif defined(__WIN32) || defined(__WINDOWS__) || defined(_WIN32)
17 namespace Files {
typedef WindowsPath TargetPathType; }
19 #elif defined(macintosh) || defined(Macintosh) || defined(__APPLE__) || defined(__MACH__)
21 namespace Files {
typedef MacOsPath TargetPathType; }
24 #error "Unknown platform!"
42 class P = TargetPathType
54 :
mPath(application_name +
"/")
boost::filesystem::path mCachePath
Definition: fixedpath.hpp:120
PathType mPath
Definition: fixedpath.hpp:111
const boost::filesystem::path & getGlobalConfigPath() const
Return path pointing to the global (system) configuration directory.
Definition: fixedpath.hpp:81
const boost::filesystem::path & getUserConfigPath() const
Return path pointing to the user local configuration directory.
Definition: fixedpath.hpp:68
P PathType
Definition: fixedpath.hpp:46
const boost::filesystem::path & getInstallPath() const
Definition: fixedpath.hpp:95
const boost::filesystem::path & getCachePath() const
Definition: fixedpath.hpp:105
const boost::filesystem::path & getLocalPath() const
Return path pointing to the directory where application was started.
Definition: fixedpath.hpp:89
Definition: fixedpath.hpp:44
boost::filesystem::path mInstallPath
Definition: fixedpath.hpp:122
FixedPath(const std::string &application_name)
Path constructor.
Definition: fixedpath.hpp:53
const boost::filesystem::path & getUserDataPath() const
Definition: fixedpath.hpp:73
boost::filesystem::path mLocalPath
Definition: fixedpath.hpp:116
boost::filesystem::path mGlobalDataPath
Definition: fixedpath.hpp:118
boost::filesystem::path mUserConfigPath
Definition: fixedpath.hpp:113
boost::filesystem::path mUserDataPath
Definition: fixedpath.hpp:114
boost::filesystem::path mGlobalConfigPath
Definition: fixedpath.hpp:115
const boost::filesystem::path & getGlobalDataPath() const
Definition: fixedpath.hpp:100