OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
Files::ConfigurationManager Struct Reference

#include <configurationmanager.hpp>

Collaboration diagram for Files::ConfigurationManager:

Public Member Functions

 ConfigurationManager (bool silent=false)
 
virtual ~ConfigurationManager ()
 
void readConfiguration (boost::program_options::variables_map &variables, boost::program_options::options_description &description, bool quiet=false)
 
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::map< std::string,
path_type_f
TokensMappingContainer
 

Private Member Functions

bool 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
 
bool mSilent
 

Member Typedef Documentation

typedef const boost::filesystem::path&(FixedPathType::* Files::ConfigurationManager::path_type_f)() const
private
typedef std::map<std::string, path_type_f> Files::ConfigurationManager::TokensMappingContainer
private

Constructor & Destructor Documentation

Files::ConfigurationManager::ConfigurationManager ( bool  silent = false)

Here is the call graph for this function:

Files::ConfigurationManager::~ConfigurationManager ( )
virtual
Parameters
silentEmit log messages to cout?

Member Function Documentation

const boost::filesystem::path & Files::ConfigurationManager::getCachePath ( ) const

Here is the call graph for this function:

const boost::filesystem::path & Files::ConfigurationManager::getGlobalDataPath ( ) const

Here is the call graph for this function:

const boost::filesystem::path & Files::ConfigurationManager::getGlobalPath ( ) const

Here is the call graph for this function:

Here is the caller graph for this function:

const boost::filesystem::path & Files::ConfigurationManager::getInstallPath ( ) const

Here is the call graph for this function:

Here is the caller graph for this function:

const boost::filesystem::path& Files::ConfigurationManager::getLocalDataPath ( ) const
const boost::filesystem::path & Files::ConfigurationManager::getLocalPath ( ) const

Here is the call graph for this function:

Here is the caller graph for this function:

const boost::filesystem::path & Files::ConfigurationManager::getLogPath ( ) const

Here is the caller graph for this function:

const boost::filesystem::path & Files::ConfigurationManager::getUserConfigPath ( ) const

Here is the call graph for this function:

Here is the caller graph for this function:

const boost::filesystem::path & Files::ConfigurationManager::getUserDataPath ( ) const

Here is the call graph for this function:

Here is the caller graph for this function:

bool Files::ConfigurationManager::loadConfig ( const boost::filesystem::path &  path,
boost::program_options::variables_map &  variables,
boost::program_options::options_description &  description 
)
private

Here is the caller graph for this function:

void Files::ConfigurationManager::processPaths ( Files::PathContainer dataDirs,
bool  create = false 
)
Parameters
createTry creating the directory, if it does not exist. Fixed paths

Here is the caller graph for this function:

void Files::ConfigurationManager::readConfiguration ( boost::program_options::variables_map &  variables,
boost::program_options::options_description &  description,
bool  quiet = false 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Files::ConfigurationManager::setupTokensMapping ( )
private

Here is the caller graph for this function:

Member Data Documentation

FixedPathType Files::ConfigurationManager::mFixedPath
private
boost::filesystem::path Files::ConfigurationManager::mLogPath
private
bool Files::ConfigurationManager::mSilent
private
TokensMappingContainer Files::ConfigurationManager::mTokensMapping
private

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