OpenMW
Public Types | Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes
MwIniImporter Class Reference

#include <importer.hpp>

List of all members.

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

Member Typedef Documentation

typedef std::map<std::string, std::vector<std::string> > MwIniImporter::multistrmap
typedef std::map<std::string, std::string> MwIniImporter::strmap

Constructor & Destructor Documentation


Member Function Documentation

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::setVerbose ( bool  verbose)
void MwIniImporter::writeToFile ( boost::iostreams::stream< boost::iostreams::file_sink > &  out,
const multistrmap cfg 
) [static]

Member Data Documentation

std::vector<std::string> MwIniImporter::mMergeFallback [private]
bool MwIniImporter::mVerbose [private]

The documentation for this class was generated from the following files: