OpenMW
Public Member Functions
MWGui::JournalViewModel::Entry Struct Reference

The base interface for both journal entries and topics. More...

#include <journalviewmodel.hpp>

List of all members.

Public Member Functions

virtual Utf8Span body () const =0
virtual void visitSpans (boost::function< void(TopicId, size_t, size_t)> visitor) const =0

Detailed Description

The base interface for both journal entries and topics.


Member Function Documentation

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.


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