OpenMW
Public Types | Public Member Functions | Protected Attributes
MWDialogue::Topic Class Reference

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

#include <topic.hpp>

List of all members.

Public Types

typedef std::vector< std::string > TEntryContainer
typedef
TEntryContainer::const_iterator 
TEntryIter

Public Member Functions

 Topic ()
 Topic (const std::string &topic)
virtual ~Topic ()
virtual void addEntry (const JournalEntry &entry)
std::string const & getName () const
TEntryIter begin () const
 Iterator pointing to the begin of the journal for this topic.
TEntryIter end () const
 Iterator pointing past the end of the journal for this topic.
JournalEntry getEntry (const std::string &infoId) const

Protected Attributes

std::string mTopic
TEntryContainer mEntries

Detailed Description

Collection of seen responses for a topic.


Member Typedef Documentation

typedef std::vector<std::string> MWDialogue::Topic::TEntryContainer
typedef TEntryContainer::const_iterator MWDialogue::Topic::TEntryIter

Constructor & Destructor Documentation

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

Member Function Documentation

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

Add entry

Note:
Redundant entries are ignored.

Reimplemented in MWDialogue::Quest.

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

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

JournalEntry MWDialogue::Topic::getEntry ( const std::string &  infoId) const
std::string const& MWDialogue::Topic::getName ( ) const [inline]

Reimplemented in MWDialogue::Quest.


Member Data Documentation

std::string MWDialogue::Topic::mTopic [protected]

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