OpenMW
Public Member Functions | Private Types | Private Member Functions | Private Attributes
Files::ConfigurationManager Struct Reference

#include <configurationmanager.hpp>

List of all members.

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

Member Typedef Documentation

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]

Constructor & Destructor Documentation


Member Function Documentation

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 
)
Parameters:
createTry 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 
)

Member Data Documentation

boost::filesystem::path Files::ConfigurationManager::mLogPath [private]

The documentation for this struct was generated from the following files: