OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
ESM::Dialogue Struct Reference

#include <loaddial.hpp>

Collaboration diagram for ESM::Dialogue:

Public Types

enum  Type {
  Topic = 0, Voice = 1, Greeting = 2, Persuasion = 3,
  Journal = 4, Unknown = -1
}
 
typedef std::list< DialInfoInfoContainer
 
typedef std::map< std::string,
std::pair
< InfoContainer::iterator,
bool > > 
LookupMap
 

Public Member Functions

void load (ESMReader &esm, bool &isDeleted)
 Loads all sub-records of Dialogue record. More...
 
void loadId (ESMReader &esm)
 Loads NAME sub-record of Dialogue record. More...
 
void loadData (ESMReader &esm, bool &isDeleted)
 Loads all sub-records of Dialogue record, except NAME sub-record. More...
 
void save (ESMWriter &esm, bool isDeleted=false) const
 
void clearDeletedInfos ()
 Remove all INFOs that are deleted. More...
 
void readInfo (ESM::ESMReader &esm, bool merge)
 
void blank ()
 Set record to default state (does not touch the ID and does not change the type). More...
 

Static Public Member Functions

static std::string getRecordType ()
 Return a string descriptor for this record type. Currently used for debugging / error logs only. More...
 

Public Attributes

std::string mId
 
signed char mType
 
InfoContainer mInfo
 
LookupMap mLookup
 

Static Public Attributes

static unsigned int sRecordId = REC_DIAL
 

Member Typedef Documentation

typedef std::map<std::string, std::pair<InfoContainer::iterator, bool> > ESM::Dialogue::LookupMap

Member Enumeration Documentation

Enumerator
Topic 
Voice 
Greeting 
Persuasion 
Journal 
Unknown 

Member Function Documentation

void ESM::Dialogue::blank ( )

Set record to default state (does not touch the ID and does not change the type).

Here is the caller graph for this function:

void ESM::Dialogue::clearDeletedInfos ( )

Remove all INFOs that are deleted.

Here is the caller graph for this function:

static std::string ESM::Dialogue::getRecordType ( )
inlinestatic

Return a string descriptor for this record type. Currently used for debugging / error logs only.

void ESM::Dialogue::load ( ESMReader esm,
bool isDeleted 
)

Loads all sub-records of Dialogue record.

Here is the call graph for this function:

Here is the caller graph for this function:

void ESM::Dialogue::loadData ( ESMReader esm,
bool isDeleted 
)

Loads all sub-records of Dialogue record, except NAME sub-record.

Here is the call graph for this function:

Here is the caller graph for this function:

void ESM::Dialogue::loadId ( ESMReader esm)

Loads NAME sub-record of Dialogue record.

Here is the call graph for this function:

Here is the caller graph for this function:

void ESM::Dialogue::readInfo ( ESM::ESMReader esm,
bool  merge 
)

Read the next info record

Parameters
mergeMerge with existing list, or just push each record to the end of the list?

Here is the call graph for this function:

Here is the caller graph for this function:

void ESM::Dialogue::save ( ESMWriter esm,
bool  isDeleted = false 
) const

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

std::string ESM::Dialogue::mId
InfoContainer ESM::Dialogue::mInfo
LookupMap ESM::Dialogue::mLookup
signed char ESM::Dialogue::mType
unsigned int ESM::Dialogue::sRecordId = REC_DIAL
static

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