OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
linuxpath.hpp
Go to the documentation of this file.
1 #ifndef COMPONENTS_FILES_LINUXPATH_H
2 #define COMPONENTS_FILES_LINUXPATH_H
3 
4 #if defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__)
5 
6 #include <boost/filesystem.hpp>
7 
11 namespace Files
12 {
13 
17 struct LinuxPath
18 {
19  LinuxPath(const std::string& application_name);
20 
24  boost::filesystem::path getUserConfigPath() const;
25 
26  boost::filesystem::path getUserDataPath() const;
27 
31  boost::filesystem::path getGlobalConfigPath() const;
32 
37  boost::filesystem::path getLocalPath() const;
38 
42  boost::filesystem::path getGlobalDataPath() const;
43 
47  boost::filesystem::path getCachePath() const;
48 
52  boost::filesystem::path getInstallPath() const;
53 
54  std::string mName;
55 };
56 
57 } /* namespace Files */
58 
59 #endif /* defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) */
60 
61 #endif /* COMPONENTS_FILES_LINUXPATH_H */