1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 16:19:54 +00:00
openmw-tes3mp/apps/mwiniimporter/importer.hpp
2012-03-31 18:28:48 +02:00

29 lines
680 B
C++

#ifndef MWINIIMPORTER_IMPORTER
#define MWINIIMPORTER_IMPORTER 1
#include <string>
#include <map>
#include <exception>
typedef std::multimap<std::string, std::string> strmap;
class MwIniImporter {
public:
MwIniImporter();
void setVerbose(bool verbose);
strmap loadIniFile(std::string filename);
strmap loadCfgFile(std::string filename);
void merge(strmap &cfg, strmap &ini);
void importGameFiles(strmap &cfg, strmap &ini);
void writeToFile(std::string file, strmap &cfg);
private:
bool specialMerge(std::string cfgKey, std::string iniKey, strmap &cfg, strmap &ini);
bool mVerbose;
strmap mMergeMap;
};
#endif