OpenMW
|
The base interface for both journal entries and topics. More...
#include <journalviewmodel.hpp>
Public Member Functions | |
virtual Utf8Span | body () const =0 |
virtual void | visitSpans (boost::function< void(TopicId, size_t, size_t)> visitor) const =0 |
The base interface for both journal entries and topics.
virtual Utf8Span MWGui::JournalViewModel::Entry::body | ( | ) | const [pure virtual] |
returns the body text for the journal entry
This function returns a borrowed reference to the body of the journal entry. The returned reference becomes invalid when the entry is destroyed.
virtual void MWGui::JournalViewModel::Entry::visitSpans | ( | boost::function< void(TopicId, size_t, size_t)> | visitor | ) | const [pure virtual] |
Visits each subset of text in the body, delivering the beginning and end of the span relative to the body, and a valid topic ID if the span represents a keyword, or zero if not.