OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
MWDialogue::Topic Class Reference

Collection of seen responses for a topic. More...

#include <topic.hpp>

Inheritance diagram for MWDialogue::Topic:
Collaboration diagram for MWDialogue::Topic:

Public Types

typedef std::vector< EntryTEntryContainer
 
typedef
TEntryContainer::const_iterator 
TEntryIter
 

Public Member Functions

 Topic ()
 
 Topic (const std::string &topic)
 
virtual ~Topic ()
 
virtual void addEntry (const JournalEntry &entry)
 
void insertEntry (const ESM::JournalEntry &entry)
 
std::string getTopic () const
 
virtual std::string getName () const
 
void removeLastAddedResponse (const std::string &actorName)
 
TEntryIter begin () const
 Iterator pointing to the begin of the journal for this topic. More...
 
TEntryIter end () const
 Iterator pointing past the end of the journal for this topic. More...
 

Protected Attributes

std::string mTopic
 
std::string mName
 
TEntryContainer mEntries
 

Detailed Description

Collection of seen responses for a topic.

Member Typedef Documentation

typedef TEntryContainer::const_iterator MWDialogue::Topic::TEntryIter

Constructor & Destructor Documentation

MWDialogue::Topic::Topic ( )
MWDialogue::Topic::Topic ( const std::string &  topic)
MWDialogue::Topic::~Topic ( )
virtual

Member Function Documentation

void MWDialogue::Topic::addEntry ( const JournalEntry entry)
virtual

Add entry

Note
Redundant entries are ignored.

Reimplemented in MWDialogue::Quest.

Here is the caller graph for this function:

Topic::TEntryIter MWDialogue::Topic::begin ( ) const

Iterator pointing to the begin of the journal for this topic.

Here is the caller graph for this function:

Topic::TEntryIter MWDialogue::Topic::end ( ) const

Iterator pointing past the end of the journal for this topic.

Here is the caller graph for this function:

std::string MWDialogue::Topic::getName ( ) const
virtual

Reimplemented in MWDialogue::Quest.

Here is the caller graph for this function:

std::string MWDialogue::Topic::getTopic ( ) const

Here is the caller graph for this function:

void MWDialogue::Topic::insertEntry ( const ESM::JournalEntry entry)

Add entry without checking for redundant entries or modifying the state of the topic otherwise

Here is the caller graph for this function:

void MWDialogue::Topic::removeLastAddedResponse ( const std::string &  actorName)

Here is the caller graph for this function:

Member Data Documentation

TEntryContainer MWDialogue::Topic::mEntries
protected
std::string MWDialogue::Topic::mName
protected
std::string MWDialogue::Topic::mTopic
protected

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