OpenMW
|
#include <importer.hpp>
Public Types | |
typedef std::map< std::string, std::string > | strmap |
typedef std::map< std::string, std::vector< std::string > > | multistrmap |
Public Member Functions | |
MwIniImporter () | |
void | setInputEncoding (const ToUTF8::FromType &encoding) |
void | setVerbose (bool verbose) |
multistrmap | loadIniFile (const std::string &filename) const |
void | merge (multistrmap &cfg, const multistrmap &ini) const |
void | mergeFallback (multistrmap &cfg, const multistrmap &ini) const |
void | importGameFiles (multistrmap &cfg, const multistrmap &ini) const |
void | importArchives (multistrmap &cfg, const multistrmap &ini) const |
Static Public Member Functions | |
static multistrmap | loadCfgFile (const std::string &filename) |
static void | writeToFile (boost::iostreams::stream< boost::iostreams::file_sink > &out, const multistrmap &cfg) |
Static Private Member Functions | |
static void | insertMultistrmap (multistrmap &cfg, const std::string &key, const std::string &value) |
static std::string | numberToString (int n) |
Private Attributes | |
bool | mVerbose |
strmap | mMergeMap |
std::vector< std::string > | mMergeFallback |
ToUTF8::FromType | mEncoding |
typedef std::map<std::string, std::vector<std::string> > MwIniImporter::multistrmap |
typedef std::map<std::string, std::string> MwIniImporter::strmap |
void MwIniImporter::importArchives | ( | multistrmap & | cfg, |
const multistrmap & | ini | ||
) | const |
void MwIniImporter::importGameFiles | ( | multistrmap & | cfg, |
const multistrmap & | ini | ||
) | const |
void MwIniImporter::insertMultistrmap | ( | multistrmap & | cfg, |
const std::string & | key, | ||
const std::string & | value | ||
) | [static, private] |
MwIniImporter::multistrmap MwIniImporter::loadCfgFile | ( | const std::string & | filename | ) | [static] |
MwIniImporter::multistrmap MwIniImporter::loadIniFile | ( | const std::string & | filename | ) | const |
void MwIniImporter::merge | ( | multistrmap & | cfg, |
const multistrmap & | ini | ||
) | const |
void MwIniImporter::mergeFallback | ( | multistrmap & | cfg, |
const multistrmap & | ini | ||
) | const |
std::string MwIniImporter::numberToString | ( | int | n | ) | [static, private] |
void MwIniImporter::setInputEncoding | ( | const ToUTF8::FromType & | encoding | ) |
void MwIniImporter::setVerbose | ( | bool | verbose | ) |
void MwIniImporter::writeToFile | ( | boost::iostreams::stream< boost::iostreams::file_sink > & | out, |
const multistrmap & | cfg | ||
) | [static] |
ToUTF8::FromType MwIniImporter::mEncoding [private] |
std::vector<std::string> MwIniImporter::mMergeFallback [private] |
strmap MwIniImporter::mMergeMap [private] |
bool MwIniImporter::mVerbose [private] |