OpenMW
|
#include <configurationmanager.hpp>
Public Member Functions | |
ConfigurationManager () | |
virtual | ~ConfigurationManager () |
void | readConfiguration (boost::program_options::variables_map &variables, boost::program_options::options_description &description) |
void | processPaths (Files::PathContainer &dataDirs, bool create=false) |
const boost::filesystem::path & | getGlobalPath () const |
const boost::filesystem::path & | getUserConfigPath () const |
const boost::filesystem::path & | getLocalPath () const |
const boost::filesystem::path & | getGlobalDataPath () const |
const boost::filesystem::path & | getUserDataPath () const |
const boost::filesystem::path & | getLocalDataPath () const |
const boost::filesystem::path & | getInstallPath () const |
const boost::filesystem::path & | getCachePath () const |
const boost::filesystem::path & | getLogPath () const |
Private Types | |
typedef Files::FixedPath | FixedPathType |
typedef const boost::filesystem::path &(FixedPathType::* | path_type_f )() const |
typedef std::tr1::unordered_map < std::string, path_type_f > | TokensMappingContainer |
Private Member Functions | |
void | loadConfig (const boost::filesystem::path &path, boost::program_options::variables_map &variables, boost::program_options::options_description &description) |
void | setupTokensMapping () |
Private Attributes | |
FixedPathType | mFixedPath |
boost::filesystem::path | mLogPath |
TokensMappingContainer | mTokensMapping |
typedef Files::FixedPath Files::ConfigurationManager::FixedPathType [private] |
typedef const boost::filesystem::path&(FixedPathType::* Files::ConfigurationManager::path_type_f)() const [private] |
typedef std::tr1::unordered_map<std::string, path_type_f> Files::ConfigurationManager::TokensMappingContainer [private] |
Files::ConfigurationManager::~ConfigurationManager | ( | ) | [virtual] |
const boost::filesystem::path & Files::ConfigurationManager::getCachePath | ( | ) | const |
const boost::filesystem::path & Files::ConfigurationManager::getGlobalDataPath | ( | ) | const |
const boost::filesystem::path & Files::ConfigurationManager::getGlobalPath | ( | ) | const |
const boost::filesystem::path & Files::ConfigurationManager::getInstallPath | ( | ) | const |
const boost::filesystem::path& Files::ConfigurationManager::getLocalDataPath | ( | ) | const |
const boost::filesystem::path & Files::ConfigurationManager::getLocalPath | ( | ) | const |
const boost::filesystem::path & Files::ConfigurationManager::getLogPath | ( | ) | const |
const boost::filesystem::path & Files::ConfigurationManager::getUserConfigPath | ( | ) | const |
const boost::filesystem::path & Files::ConfigurationManager::getUserDataPath | ( | ) | const |
void Files::ConfigurationManager::loadConfig | ( | const boost::filesystem::path & | path, |
boost::program_options::variables_map & | variables, | ||
boost::program_options::options_description & | description | ||
) | [private] |
void Files::ConfigurationManager::processPaths | ( | Files::PathContainer & | dataDirs, |
bool | create = false |
||
) |
create | Try creating the directory, if it does not exist. Fixed paths |
void Files::ConfigurationManager::readConfiguration | ( | boost::program_options::variables_map & | variables, |
boost::program_options::options_description & | description | ||
) |
void Files::ConfigurationManager::setupTokensMapping | ( | ) | [private] |
boost::filesystem::path Files::ConfigurationManager::mLogPath [private] |