OpenMW
|
00001 #ifndef COMPONENTS_FILES_MACOSPATH_H 00002 #define COMPONENTS_FILES_MACOSPATH_H 00003 00004 #if defined(macintosh) || defined(Macintosh) || defined(__APPLE__) || defined(__MACH__) 00005 00006 #include <boost/filesystem.hpp> 00007 00011 namespace Files 00012 { 00013 00017 struct MacOsPath 00018 { 00019 MacOsPath(const std::string& application_name); 00020 00026 boost::filesystem::path getUserConfigPath() const; 00027 00028 boost::filesystem::path getUserDataPath() const; 00029 00035 boost::filesystem::path getGlobalConfigPath() const; 00036 00043 boost::filesystem::path getLocalPath() const; 00044 00050 boost::filesystem::path getCachePath() const; 00051 00057 boost::filesystem::path getGlobalDataPath() const; 00058 00059 boost::filesystem::path getInstallPath() const; 00060 00061 std::string mName; 00062 }; 00063 00064 } /* namespace Files */ 00065 00066 #endif /* defined(macintosh) || defined(Macintosh) || defined(__APPLE__) || defined(__MACH__) */ 00067 00068 #endif /* COMPONENTS_FILES_MACOSPATH_H */