1 #ifndef MWINIIMPORTER_IMPORTER
2 #define MWINIIMPORTER_IMPORTER 1
9 #include <boost/filesystem/path.hpp>
15 typedef std::map<std::string, std::string>
strmap;
16 typedef std::map<std::string, std::vector<std::string> >
multistrmap;
26 const boost::filesystem::path& iniFilename)
const;
35 static std::time_t
lastWriteTime(
const boost::filesystem::path& filename, std::time_t defaultTime);
std::vector< std::string > mMergeFallback
Definition: importer.hpp:39
Definition: importer.hpp:13
void setInputEncoding(const ToUTF8::FromType &encoding)
Definition: importer.cpp:882
void importArchives(multistrmap &cfg, const multistrmap &ini) const
Definition: importer.cpp:799
static std::time_t lastWriteTime(const boost::filesystem::path &filename, std::time_t defaultTime)
Definition: importer.cpp:887
std::map< std::string, std::vector< std::string > > multistrmap
Definition: importer.hpp:16
void importGameFiles(multistrmap &cfg, const multistrmap &ini, const boost::filesystem::path &iniFilename) const
Definition: importer.cpp:832
static void insertMultistrmap(multistrmap &cfg, const std::string &key, const std::string &value)
Definition: importer.cpp:791
bool mVerbose
Definition: importer.hpp:37
strmap mMergeMap
Definition: importer.hpp:38
FromType
Definition: to_utf8.hpp:11
static multistrmap loadCfgFile(const boost::filesystem::path &filename)
Definition: importer.cpp:726
void merge(multistrmap &cfg, const multistrmap &ini) const
Definition: importer.cpp:762
void setVerbose(bool verbose)
Definition: importer.cpp:657
static void writeToFile(std::ostream &out, const multistrmap &cfg)
Definition: importer.cpp:873
MwIniImporter()
Definition: importer.cpp:18
std::map< std::string, std::string > strmap
Definition: importer.hpp:15
ToUTF8::FromType mEncoding
Definition: importer.hpp:40
static std::string numberToString(int n)
Definition: importer.cpp:661
multistrmap loadIniFile(const boost::filesystem::path &filename) const
Definition: importer.cpp:667
void mergeFallback(multistrmap &cfg, const multistrmap &ini) const
Definition: importer.cpp:774