OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
MWGui::JournalViewModel::Entry Struct Referenceabstract

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

#include <journalviewmodel.hpp>

Inheritance diagram for MWGui::JournalViewModel::Entry:
Collaboration diagram for MWGui::JournalViewModel::Entry:

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.

Here is the caller graph for this function:

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.

Here is the caller graph for this function:


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