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

VerifyStage: check topics. More...

#include <topicinfocheck.hpp>

Inheritance diagram for CSMTools::TopicInfoCheckStage:
Collaboration diagram for CSMTools::TopicInfoCheckStage:

Public Member Functions

 TopicInfoCheckStage (const CSMWorld::InfoCollection &topicInfos, const CSMWorld::IdCollection< CSMWorld::Cell > &cells, const CSMWorld::IdCollection< ESM::Class > &classes, const CSMWorld::IdCollection< ESM::Faction > &factions, const CSMWorld::IdCollection< ESM::GameSetting > &gmsts, const CSMWorld::IdCollection< ESM::Global > &globals, const CSMWorld::IdCollection< ESM::Dialogue > &journals, const CSMWorld::IdCollection< ESM::Race > &races, const CSMWorld::IdCollection< ESM::Region > &regions, const CSMWorld::IdCollection< ESM::Dialogue > &topics, const CSMWorld::RefIdData &referencables, const CSMWorld::Resources &soundFiles)
 
virtual int setup ()
 
virtual void perform (int step, CSMDoc::Messages &messages)
 Messages resulting from this stage will be appended to messages. More...
 
- Public Member Functions inherited from CSMDoc::Stage
virtual ~Stage ()
 

Private Member Functions

bool verifyActor (const std::string &name, const CSMWorld::UniversalId &id, CSMDoc::Messages &messages)
 
bool verifyCell (const std::string &name, const CSMWorld::UniversalId &id, CSMDoc::Messages &messages)
 
bool verifyFactionRank (const std::string &name, int rank, const CSMWorld::UniversalId &id, CSMDoc::Messages &messages)
 
bool verifyItem (const std::string &name, const CSMWorld::UniversalId &id, CSMDoc::Messages &messages)
 
bool verifySelectStruct (const ESM::DialInfo::SelectStruct &select, const CSMWorld::UniversalId &id, CSMDoc::Messages &messages)
 
bool verifySound (const std::string &name, const CSMWorld::UniversalId &id, CSMDoc::Messages &messages)
 
template<typename T >
bool verifyId (const std::string &name, const CSMWorld::IdCollection< T > &collection, const CSMWorld::UniversalId &id, CSMDoc::Messages &messages)
 
void writeMissingIdError (const std::string &specifier, const std::string &missingId, const CSMWorld::UniversalId &id, CSMDoc::Messages &messages)
 
void writeDeletedRecordError (const std::string &specifier, const std::string &recordId, const CSMWorld::UniversalId &id, CSMDoc::Messages &messages)
 
void writeInvalidTypeError (const std::string &specifier, const std::string &invalidId, CSMWorld::UniversalId::Type invalidType, const std::string &expectedType, const CSMWorld::UniversalId &id, CSMDoc::Messages &messages)
 

Private Attributes

const CSMWorld::InfoCollectionmTopicInfos
 
const CSMWorld::IdCollection
< CSMWorld::Cell > & 
mCells
 
const CSMWorld::IdCollection
< ESM::Class > & 
mClasses
 
const CSMWorld::IdCollection
< ESM::Faction > & 
mFactions
 
const CSMWorld::IdCollection
< ESM::GameSetting > & 
mGameSettings
 
const CSMWorld::IdCollection
< ESM::Global > & 
mGlobals
 
const CSMWorld::IdCollection
< ESM::Dialogue > & 
mJournals
 
const CSMWorld::IdCollection
< ESM::Race > & 
mRaces
 
const CSMWorld::IdCollection
< ESM::Region > & 
mRegions
 
const CSMWorld::IdCollection
< ESM::Dialogue > & 
mTopics
 
const CSMWorld::RefIdDatamReferencables
 
const CSMWorld::ResourcesmSoundFiles
 
std::set< std::string > mCellNames
 

Detailed Description

VerifyStage: check topics.

Constructor & Destructor Documentation

CSMTools::TopicInfoCheckStage::TopicInfoCheckStage ( const CSMWorld::InfoCollection topicInfos,
const CSMWorld::IdCollection< CSMWorld::Cell > &  cells,
const CSMWorld::IdCollection< ESM::Class > &  classes,
const CSMWorld::IdCollection< ESM::Faction > &  factions,
const CSMWorld::IdCollection< ESM::GameSetting > &  gmsts,
const CSMWorld::IdCollection< ESM::Global > &  globals,
const CSMWorld::IdCollection< ESM::Dialogue > &  journals,
const CSMWorld::IdCollection< ESM::Race > &  races,
const CSMWorld::IdCollection< ESM::Region > &  regions,
const CSMWorld::IdCollection< ESM::Dialogue > &  topics,
const CSMWorld::RefIdData referencables,
const CSMWorld::Resources soundFiles 
)

Member Function Documentation

void CSMTools::TopicInfoCheckStage::perform ( int  step,
CSMDoc::Messages messages 
)
virtual

Messages resulting from this stage will be appended to messages.

Implements CSMDoc::Stage.

Here is the call graph for this function:

int CSMTools::TopicInfoCheckStage::setup ( )
virtual
Returns
number of steps

Implements CSMDoc::Stage.

Here is the call graph for this function:

bool CSMTools::TopicInfoCheckStage::verifyActor ( const std::string &  name,
const CSMWorld::UniversalId id,
CSMDoc::Messages messages 
)
private
bool CSMTools::TopicInfoCheckStage::verifyCell ( const std::string &  name,
const CSMWorld::UniversalId id,
CSMDoc::Messages messages 
)
private
bool CSMTools::TopicInfoCheckStage::verifyFactionRank ( const std::string &  name,
int  rank,
const CSMWorld::UniversalId id,
CSMDoc::Messages messages 
)
private

Here is the call graph for this function:

template<typename T >
bool CSMTools::TopicInfoCheckStage::verifyId ( const std::string &  name,
const CSMWorld::IdCollection< T > &  collection,
const CSMWorld::UniversalId id,
CSMDoc::Messages messages 
)
private

Here is the call graph for this function:

bool CSMTools::TopicInfoCheckStage::verifyItem ( const std::string &  name,
const CSMWorld::UniversalId id,
CSMDoc::Messages messages 
)
private
bool CSMTools::TopicInfoCheckStage::verifySelectStruct ( const ESM::DialInfo::SelectStruct select,
const CSMWorld::UniversalId id,
CSMDoc::Messages messages 
)
private

Here is the call graph for this function:

bool CSMTools::TopicInfoCheckStage::verifySound ( const std::string &  name,
const CSMWorld::UniversalId id,
CSMDoc::Messages messages 
)
private
void CSMTools::TopicInfoCheckStage::writeDeletedRecordError ( const std::string &  specifier,
const std::string &  recordId,
const CSMWorld::UniversalId id,
CSMDoc::Messages messages 
)
private

Here is the call graph for this function:

void CSMTools::TopicInfoCheckStage::writeInvalidTypeError ( const std::string &  specifier,
const std::string &  invalidId,
CSMWorld::UniversalId::Type  invalidType,
const std::string &  expectedType,
const CSMWorld::UniversalId id,
CSMDoc::Messages messages 
)
private

Here is the call graph for this function:

void CSMTools::TopicInfoCheckStage::writeMissingIdError ( const std::string &  specifier,
const std::string &  missingId,
const CSMWorld::UniversalId id,
CSMDoc::Messages messages 
)
private

Here is the call graph for this function:

Member Data Documentation

std::set<std::string> CSMTools::TopicInfoCheckStage::mCellNames
private
const CSMWorld::IdCollection<CSMWorld::Cell>& CSMTools::TopicInfoCheckStage::mCells
private
const CSMWorld::IdCollection<ESM::Class>& CSMTools::TopicInfoCheckStage::mClasses
private
const CSMWorld::IdCollection<ESM::Faction>& CSMTools::TopicInfoCheckStage::mFactions
private
const CSMWorld::IdCollection<ESM::GameSetting>& CSMTools::TopicInfoCheckStage::mGameSettings
private
const CSMWorld::IdCollection<ESM::Global>& CSMTools::TopicInfoCheckStage::mGlobals
private
const CSMWorld::IdCollection<ESM::Dialogue>& CSMTools::TopicInfoCheckStage::mJournals
private
const CSMWorld::IdCollection<ESM::Race>& CSMTools::TopicInfoCheckStage::mRaces
private
const CSMWorld::RefIdData& CSMTools::TopicInfoCheckStage::mReferencables
private
const CSMWorld::IdCollection<ESM::Region>& CSMTools::TopicInfoCheckStage::mRegions
private
const CSMWorld::Resources& CSMTools::TopicInfoCheckStage::mSoundFiles
private
const CSMWorld::InfoCollection& CSMTools::TopicInfoCheckStage::mTopicInfos
private
const CSMWorld::IdCollection<ESM::Dialogue>& CSMTools::TopicInfoCheckStage::mTopics
private

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