OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
macospath.hpp
Go to the documentation of this file.
1 #ifndef COMPONENTS_FILES_MACOSPATH_H
2 #define COMPONENTS_FILES_MACOSPATH_H
3 
4 #if defined(macintosh) || defined(Macintosh) || defined(__APPLE__) || defined(__MACH__)
5 
6 #include <boost/filesystem.hpp>
7 
11 namespace Files
12 {
13 
17 struct MacOsPath
18 {
19  MacOsPath(const std::string& application_name);
20 
26  boost::filesystem::path getUserConfigPath() const;
27 
28  boost::filesystem::path getUserDataPath() const;
29 
35  boost::filesystem::path getGlobalConfigPath() const;
36 
43  boost::filesystem::path getLocalPath() const;
44 
50  boost::filesystem::path getCachePath() const;
51 
57  boost::filesystem::path getGlobalDataPath() const;
58 
59  boost::filesystem::path getInstallPath() const;
60 
61  std::string mName;
62 };
63 
64 } /* namespace Files */
65 
66 #endif /* defined(macintosh) || defined(Macintosh) || defined(__APPLE__) || defined(__MACH__) */
67 
68 #endif /* COMPONENTS_FILES_MACOSPATH_H */