OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
MWGui::Formatting::BookTextParser Class Reference

#include <formatting.hpp>

Collaboration diagram for MWGui::Formatting::BookTextParser:

Public Types

enum  Events {
  Event_None = -2, Event_EOF = -1, Event_BrTag, Event_PTag,
  Event_ImgTag, Event_DivTag, Event_FontTag
}
 
typedef std::map< std::string,
std::string > 
Attributes
 

Public Member Functions

 BookTextParser (const std::string &text)
 
Events next ()
 
const AttributesgetAttributes () const
 
std::string getReadyText () const
 
bool isClosingTag () const
 

Private Member Functions

void registerTag (const std::string &tag, Events type)
 
void flushBuffer ()
 
void parseTag (std::string tag)
 

Private Attributes

size_t mIndex
 
std::string mText
 
std::string mReadyText
 
bool mIgnoreNewlineTags
 
bool mIgnoreLineEndings
 
Attributes mAttributes
 
std::string mTag
 
bool mClosingTag
 
std::map< std::string, EventsmTagTypes
 
std::string mBuffer
 

Member Typedef Documentation

typedef std::map<std::string, std::string> MWGui::Formatting::BookTextParser::Attributes

Member Enumeration Documentation

Enumerator
Event_None 
Event_EOF 
Event_BrTag 
Event_PTag 
Event_ImgTag 
Event_DivTag 
Event_FontTag 

Constructor & Destructor Documentation

MWGui::Formatting::BookTextParser::BookTextParser ( const std::string &  text)

Here is the call graph for this function:

Member Function Documentation

void MWGui::Formatting::BookTextParser::flushBuffer ( )
private

Here is the caller graph for this function:

const BookTextParser::Attributes & MWGui::Formatting::BookTextParser::getAttributes ( ) const

Here is the caller graph for this function:

std::string MWGui::Formatting::BookTextParser::getReadyText ( ) const

Here is the caller graph for this function:

bool MWGui::Formatting::BookTextParser::isClosingTag ( ) const

Here is the caller graph for this function:

BookTextParser::Events MWGui::Formatting::BookTextParser::next ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::Formatting::BookTextParser::parseTag ( std::string  tag)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::Formatting::BookTextParser::registerTag ( const std::string &  tag,
BookTextParser::Events  type 
)
private

Here is the caller graph for this function:

Member Data Documentation

Attributes MWGui::Formatting::BookTextParser::mAttributes
private
std::string MWGui::Formatting::BookTextParser::mBuffer
private
bool MWGui::Formatting::BookTextParser::mClosingTag
private
bool MWGui::Formatting::BookTextParser::mIgnoreLineEndings
private
bool MWGui::Formatting::BookTextParser::mIgnoreNewlineTags
private
size_t MWGui::Formatting::BookTextParser::mIndex
private
std::string MWGui::Formatting::BookTextParser::mReadyText
private
std::string MWGui::Formatting::BookTextParser::mTag
private
std::map<std::string, Events> MWGui::Formatting::BookTextParser::mTagTypes
private
std::string MWGui::Formatting::BookTextParser::mText
private

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