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:180
const boost::filesystem::path & getLocalPath() const
Definition: configurationmanager.cpp:175
const boost::filesystem::path & getLogPath() const
Definition: configurationmanager.cpp:195
TokensMappingContainer mTokensMapping
Definition: configurationmanager.hpp:61
const boost::filesystem::path & getInstallPath() const
Definition: configurationmanager.cpp:190
void processPaths(Files::PathContainer &dataDirs, bool create=false)
Definition: configurationmanager.cpp:71
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:165
void readConfiguration(boost::program_options::variables_map &variables, boost::program_options::options_description &description, bool quiet=false)
Definition: configurationmanager.cpp:50
const boost::filesystem::path & getGlobalPath() const
Definition: configurationmanager.cpp:160
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:27
virtual ~ConfigurationManager()
Definition: configurationmanager.cpp:39
bool loadConfig(const boost::filesystem::path &path, boost::program_options::variables_map &variables, boost::program_options::options_description &description)
Definition: configurationmanager.cpp:127
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:43
const boost::filesystem::path & getCachePath() const
Definition: configurationmanager.cpp:185
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:170