OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
ESSImport::DefaultConverter< T > Class Template Reference

Default converter: simply reads the record and writes it unmodified to the output. More...

#include <converter.hpp>

Inheritance diagram for ESSImport::DefaultConverter< T >:
Collaboration diagram for ESSImport::DefaultConverter< T >:

Public Member Functions

virtual int getStage ()
 
virtual void read (ESM::ESMReader &esm)
 
virtual void write (ESM::ESMWriter &esm)
 
- Public Member Functions inherited from ESSImport::Converter
virtual ~Converter ()
 
void setContext (Context &context)
 

Protected Attributes

std::map< std::string, T > mRecords
 
- Protected Attributes inherited from ESSImport::Converter
ContextmContext
 

Detailed Description

template<typename T>
class ESSImport::DefaultConverter< T >

Default converter: simply reads the record and writes it unmodified to the output.

Member Function Documentation

template<typename T>
virtual int ESSImport::DefaultConverter< T >::getStage ( )
inlinevirtual
Returns
the order for writing this converter's records to the output file, in relation to other converters

Reimplemented from ESSImport::Converter.

template<typename T>
virtual void ESSImport::DefaultConverter< T >::read ( ESM::ESMReader esm)
inlinevirtual
Note
The load method of ESM records accept the deleted flag as a parameter. I don't know can the DELE sub-record appear in saved games, so the deleted flag will be ignored.

Reimplemented from ESSImport::Converter.

Reimplemented in ESSImport::ConvertBook, ESSImport::ConvertClass, and ESSImport::ConvertGlobal.

template<typename T>
virtual void ESSImport::DefaultConverter< T >::write ( ESM::ESMWriter esm)
inlinevirtual

Called after the input file has been read in completely, which may be necessary if the conversion process relies on information in other records

Reimplemented from ESSImport::Converter.

Member Data Documentation

template<typename T>
std::map<std::string, T> ESSImport::DefaultConverter< T >::mRecords
protected

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