libebook::TDTextParser Class Reference

List of all members.

Classes

class  SaveAttribute

Public Member Functions

 TDTextParser (WPXDocumentInterface *document)
void parse (WPXInputStream *input, bool last=false)

Private Types

typedef deque< std::pair
< string, string > > 
Attributes_t
typedef boost::unordered_map
< string, Token > 
TokenMap_t

Private Member Functions

 TDTextParser (const TDTextParser &other)
TDTextParser operator= (const TDTextParser &other)
bool parseTag (WPXInputStream *input)
bool parseHeaderTag (const Attributes_t &attributeList)
void parseAttribute (const string &name, const string &rawValue, TDAttributes &attributes)
void openParagraph (const TDAttributes &attributes=TDAttributes())
void closeParagraph ()
void finishParagraph ()
void flushText (const TDAttributes &attributes=TDAttributes())

Private Attributes

WPXDocumentInterface *const m_document
string m_text
bool m_openedParagraph

Member Typedef Documentation

typedef deque<std::pair<string, string> > libebook::TDTextParser::Attributes_t [private]
typedef boost::unordered_map<string, Token> libebook::TDTextParser::TokenMap_t [private]

Constructor & Destructor Documentation

libebook::TDTextParser::TDTextParser ( const TDTextParser other) [private]
libebook::TDTextParser::TDTextParser ( WPXDocumentInterface *  document) [explicit]

Member Function Documentation

Referenced by parse(), and parseTag().

void libebook::TDTextParser::flushText ( const TDAttributes &  attributes = TDAttributes()) [private]

Referenced by finishParagraph(), and parseHeaderTag().

void libebook::TDTextParser::openParagraph ( const TDAttributes &  attributes = TDAttributes()) [private]

Referenced by flushText(), and parseHeaderTag().

TDTextParser libebook::TDTextParser::operator= ( const TDTextParser other) [private]
void libebook::TDTextParser::parse ( WPXInputStream *  input,
bool  last = false 
)
void libebook::TDTextParser::parseAttribute ( const string &  name,
const string &  rawValue,
TDAttributes &  attributes 
) [private]

Referenced by parseHeaderTag().

bool libebook::TDTextParser::parseHeaderTag ( const Attributes_t attributeList) [private]

Referenced by parseTag().

bool libebook::TDTextParser::parseTag ( WPXInputStream *  input) [private]

Referenced by parse().


Member Data Documentation

WPXDocumentInterface* const libebook::TDTextParser::m_document [private]

Referenced by flushText(), parse(), and parseAttribute().


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