2011-08-19 19:06:09 +00:00
|
|
|
#ifndef COMPONENTS_FILES_MACOSPATH_H
|
|
|
|
#define COMPONENTS_FILES_MACOSPATH_H
|
|
|
|
|
|
|
|
#if defined(macintosh) || defined(Macintosh) || defined(__APPLE__) || defined(__MACH__)
|
|
|
|
|
|
|
|
#include <boost/filesystem.hpp>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \namespace Files
|
|
|
|
*/
|
|
|
|
namespace Files
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \struct MacOsPath
|
|
|
|
*/
|
|
|
|
struct MacOsPath
|
|
|
|
{
|
2012-09-08 16:47:31 +00:00
|
|
|
MacOsPath(const std::string& application_name);
|
|
|
|
|
2011-08-19 19:06:09 +00:00
|
|
|
/**
|
2012-02-23 22:01:42 +00:00
|
|
|
* \brief Return path to the local directory.
|
2011-08-19 19:06:09 +00:00
|
|
|
*
|
|
|
|
* \return boost::filesystem::path
|
|
|
|
*/
|
2012-01-21 00:14:35 +00:00
|
|
|
boost::filesystem::path getUserPath() const;
|
2011-08-19 19:06:09 +00:00
|
|
|
|
|
|
|
/**
|
2012-02-23 22:01:42 +00:00
|
|
|
* \brief Return path to the global (system) directory.
|
2011-08-19 19:06:09 +00:00
|
|
|
*
|
|
|
|
* \return boost::filesystem::path
|
|
|
|
*/
|
2012-01-21 00:14:35 +00:00
|
|
|
boost::filesystem::path getGlobalPath() const;
|
2011-08-19 19:06:09 +00:00
|
|
|
|
|
|
|
/**
|
2012-02-23 22:01:42 +00:00
|
|
|
* \brief Return path to the runtime directory which is the
|
2011-08-19 19:06:09 +00:00
|
|
|
* place where an application was started.
|
|
|
|
*
|
|
|
|
* \return boost::filesystem::path
|
|
|
|
*/
|
2012-01-21 00:14:35 +00:00
|
|
|
boost::filesystem::path getLocalPath() const;
|
2012-01-21 16:58:49 +00:00
|
|
|
|
2012-09-02 17:40:26 +00:00
|
|
|
/**
|
|
|
|
* \brief
|
|
|
|
*
|
|
|
|
* \return boost::filesystem::path
|
|
|
|
*/
|
|
|
|
boost::filesystem::path getCachePath() const;
|
|
|
|
|
2012-02-19 22:39:37 +00:00
|
|
|
/**
|
|
|
|
* \brief
|
|
|
|
*
|
|
|
|
* \return boost::filesystem::path
|
|
|
|
*/
|
|
|
|
boost::filesystem::path getGlobalDataPath() const;
|
|
|
|
|
2012-01-21 16:58:49 +00:00
|
|
|
boost::filesystem::path getInstallPath() const;
|
2012-09-08 16:47:31 +00:00
|
|
|
|
|
|
|
std::string mName;
|
2011-08-19 19:06:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} /* namespace Files */
|
|
|
|
|
|
|
|
#endif /* defined(macintosh) || defined(Macintosh) || defined(__APPLE__) || defined(__MACH__) */
|
|
|
|
|
|
|
|
#endif /* COMPONENTS_FILES_MACOSPATH_H */
|