You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
2.3 KiB
C++
91 lines
2.3 KiB
C++
14 years ago
|
/**
|
||
|
* Open Morrowind - an opensource Elder Scrolls III: Morrowind
|
||
|
* engine implementation.
|
||
|
*
|
||
|
* Copyright (C) 2011 Open Morrowind Team
|
||
|
*
|
||
|
* This program is free software: you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU General Public License as published by
|
||
|
* the Free Software Foundation, either version 3 of the License, or
|
||
|
* (at your option) any later version.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License
|
||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
*/
|
||
|
|
||
|
/** \file components/files/linuxpath.hpp */
|
||
|
|
||
|
#ifndef COMPONENTS_FILES_LINUXPATH_H
|
||
|
#define COMPONENTS_FILES_LINUXPATH_H
|
||
|
|
||
|
#if defined(__linux__)
|
||
|
|
||
|
#include <boost/filesystem.hpp>
|
||
|
|
||
|
/**
|
||
|
* \namespace Files
|
||
|
*/
|
||
|
namespace Files
|
||
|
{
|
||
|
|
||
|
/**
|
||
|
* \struct LinuxPath
|
||
|
*/
|
||
|
struct LinuxPath
|
||
|
{
|
||
|
/**
|
||
|
* \brief Return path to the local configuration directory.
|
||
|
*
|
||
|
* \return boost::filesystem::path
|
||
|
*/
|
||
|
boost::filesystem::path getLocalConfigPath() const;
|
||
|
|
||
|
/**
|
||
|
* \brief Return path to the global (system) configuration directory.
|
||
|
*
|
||
|
* \return boost::filesystem::path
|
||
|
*/
|
||
|
boost::filesystem::path getGlobalConfigPath() const;
|
||
|
|
||
|
/**
|
||
|
* \brief Return path to the runtime configuration directory which is the
|
||
|
* place where an application was started.
|
||
|
*
|
||
|
* \return boost::filesystem::path
|
||
|
*/
|
||
|
boost::filesystem::path getRuntimeConfigPath() const;
|
||
|
|
||
|
/**
|
||
|
* \brief Return path to the local data directory.
|
||
|
*
|
||
|
* \return boost::filesystem::path
|
||
|
*/
|
||
|
boost::filesystem::path getLocalDataPath() const;
|
||
|
|
||
|
/**
|
||
|
* \brief Return path to the global (system) data directory.
|
||
|
*
|
||
|
* \return boost::filesystem::path
|
||
|
*/
|
||
|
boost::filesystem::path getGlobalDataPath() const;
|
||
|
|
||
|
/**
|
||
|
* \brief Return runtime data path which is a location where
|
||
|
* an application was started with 'data' suffix.
|
||
|
*
|
||
|
* \return boost::filesystem::path
|
||
|
*/
|
||
|
boost::filesystem::path getRuntimeDataPath() const;
|
||
|
};
|
||
|
|
||
|
} /* namespace Files */
|
||
|
|
||
|
#endif /* defined(__linux__) */
|
||
|
|
||
|
#endif /* COMPONENTS_FILES_LINUXPATH_H */
|