OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
MwIniImporter Class Reference

#include <importer.hpp>

Collaboration diagram for MwIniImporter:

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 boost::filesystem::path &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 boost::filesystem::path &iniFilename) const
 
void importArchives (multistrmap &cfg, const multistrmap &ini) const
 

Static Public Member Functions

static multistrmap loadCfgFile (const boost::filesystem::path &filename)
 
static void writeToFile (std::ostream &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)
 
static std::time_t lastWriteTime (const boost::filesystem::path &filename, std::time_t defaultTime)
 

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

MwIniImporter::MwIniImporter ( )

Member Function Documentation

void MwIniImporter::importArchives ( multistrmap cfg,
const multistrmap ini 
) const

Here is the call graph for this function:

Here is the caller graph for this function:

void MwIniImporter::importGameFiles ( multistrmap cfg,
const multistrmap ini,
const boost::filesystem::path &  iniFilename 
) const

Here is the call graph for this function:

Here is the caller graph for this function:

void MwIniImporter::insertMultistrmap ( multistrmap cfg,
const std::string &  key,
const std::string &  value 
)
staticprivate

Here is the caller graph for this function:

std::time_t MwIniImporter::lastWriteTime ( const boost::filesystem::path &  filename,
std::time_t  defaultTime 
)
staticprivate
Returns
file's "last modified time", used in original MW to determine plug-in load order

Here is the caller graph for this function:

MwIniImporter::multistrmap MwIniImporter::loadCfgFile ( const boost::filesystem::path &  filename)
static

Here is the caller graph for this function:

MwIniImporter::multistrmap MwIniImporter::loadIniFile ( const boost::filesystem::path &  filename) const

Here is the call graph for this function:

Here is the caller graph for this function:

void MwIniImporter::merge ( multistrmap cfg,
const multistrmap ini 
) const

Here is the call graph for this function:

Here is the caller graph for this function:

void MwIniImporter::mergeFallback ( multistrmap cfg,
const multistrmap ini 
) const

Here is the call graph for this function:

Here is the caller graph for this function:

std::string MwIniImporter::numberToString ( int  n)
staticprivate

Here is the caller graph for this function:

void MwIniImporter::setInputEncoding ( const ToUTF8::FromType encoding)

Here is the caller graph for this function:

void MwIniImporter::setVerbose ( bool  verbose)

Here is the caller graph for this function:

void MwIniImporter::writeToFile ( std::ostream &  out,
const multistrmap cfg 
)
static

Here is the caller graph for this function:

Member Data Documentation

ToUTF8::FromType MwIniImporter::mEncoding
private
std::vector<std::string> MwIniImporter::mMergeFallback
private
strmap MwIniImporter::mMergeMap
private
bool MwIniImporter::mVerbose
private

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