1 #ifndef COMPONENTS_FILES_CONFIGURATIONMANAGER_HPP
2 #define COMPONENTS_FILES_CONFIGURATIONMANAGER_HPP
6 #include <boost/program_options.hpp>
26 boost::program_options::options_description& description,
bool quiet=
false);
43 const boost::filesystem::path&
getLogPath()
const;
51 bool loadConfig(
const boost::filesystem::path& path,
52 boost::program_options::variables_map& variables,
53 boost::program_options::options_description& description);
const boost::filesystem::path & getGlobalDataPath() const
Definition: configurationmanager.cpp:190
const boost::filesystem::path & getLocalPath() const
Definition: configurationmanager.cpp:185
const boost::filesystem::path & getLogPath() const
Definition: configurationmanager.cpp:205
TokensMappingContainer mTokensMapping
Definition: configurationmanager.hpp:61
const boost::filesystem::path & getInstallPath() const
Definition: configurationmanager.cpp:200
void processPaths(Files::PathContainer &dataDirs, bool create=false)
Definition: configurationmanager.cpp:78
const boost::filesystem::path & getLocalDataPath() const
Files::FixedPath FixedPathType
Definition: configurationmanager.hpp:46
Definition: configurationmanager.hpp:20
FixedPathType mFixedPath
Definition: configurationmanager.hpp:57
const boost::filesystem::path & getUserConfigPath() const
Definition: configurationmanager.cpp:175
void readConfiguration(boost::program_options::variables_map &variables, boost::program_options::options_description &description, bool quiet=false)
Definition: configurationmanager.cpp:57
const boost::filesystem::path & getGlobalPath() const
Definition: configurationmanager.cpp:170
Definition: fixedpath.hpp:44
std::map< std::string, path_type_f > TokensMappingContainer
Definition: configurationmanager.hpp:49
bool mSilent
Definition: configurationmanager.hpp:63
ConfigurationManager(bool silent=false)
Definition: configurationmanager.cpp:34
virtual ~ConfigurationManager()
Definition: configurationmanager.cpp:46
bool loadConfig(const boost::filesystem::path &path, boost::program_options::variables_map &variables, boost::program_options::options_description &description)
Definition: configurationmanager.cpp:136
void create(const MWWorld::Store< T > &list, const std::string &name, boost::any &refValue, MWWorld::Ptr &ptrValue)
Definition: manualref.cpp:9
const boost::filesystem::path &(FixedPathType::* path_type_f)() const
Definition: configurationmanager.hpp:48
void setupTokensMapping()
Definition: configurationmanager.cpp:50
const boost::filesystem::path & getCachePath() const
Definition: configurationmanager.cpp:195
boost::filesystem::path mLogPath
Definition: configurationmanager.hpp:59
std::vector< boost::filesystem::path > PathContainer
Definition: gamesettings.hpp:14
const boost::filesystem::path & getUserDataPath() const
Definition: configurationmanager.cpp:180