You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw-tes3mp/apps/mwiniimporter/importer.hpp

32 lines
634 B
C++

13 years ago
#ifndef MWINIIMPORTER_IMPORTER
#define MWINIIMPORTER_IMPORTER 1
#include <string>
13 years ago
#include <map>
#include <exception>
typedef std::map<std::string, std::string> strmap;
class IniParseException : public std::exception {
virtual const char* what() const throw() {
return "unexpected end of line";
}
};
13 years ago
class MwIniImporter {
public:
13 years ago
void setVerbose(bool verbose);
strmap loadIniFile(std::string filename);
strmap loadCfgFile(std::string filename);
void merge(strmap &cfg, strmap &ini);
void writeToFile(std::string file, strmap &cfg);
13 years ago
private:
13 years ago
bool mVerbose;
13 years ago
};
#endif