#ifndef MWINIIMPORTER_IMPORTER #define MWINIIMPORTER_IMPORTER 1 #include #include #include #include #include #include typedef std::map 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, std::vector &esmFiles, std::vector &espFiles); void writeGameFiles(boost::iostreams::stream &out, std::vector &esmFiles, std::vector &espFiles); void writeToFile(boost::iostreams::stream &out, strmap &cfg); private: bool specialMerge(std::string cfgKey, std::string iniKey, strmap &cfg, strmap &ini); bool mVerbose; strmap mMergeMap; }; #endif