libebook::FictionBook2AContext Class Reference

#include <FictionBook2TextContext.h>

Inheritance diagram for libebook::FictionBook2AContext:
libebook::FictionBook2StyleContextBase libebook::FictionBook2ParserContext libebook::FictionBook2XMLParserContext

Public Member Functions

 FictionBook2AContext (FictionBook2ParserContext *parentContext, const FictionBook2Style &style)
 
- Public Member Functions inherited from libebook::FictionBook2StyleContextBase
 FictionBook2StyleContextBase (FictionBook2ParserContext *parentContext, const FictionBook2Style &style)
 
- Public Member Functions inherited from libebook::FictionBook2ParserContext
 FictionBook2ParserContext (FictionBook2ParserContext *parentContext, FictionBook2Collector *collector=nullptr)
 Create a new context with parentContext as parent. More...
 
FictionBook2XMLParserContextleaveContext () const override
 Destroy this context and return parent. More...
 
FictionBook2CollectorgetCollector () const
 Get the collector. More...
 
FictionBook2ParserContextgetParentContext () const
 Get the parent context. More...
 
- Public Member Functions inherited from libebook::FictionBook2XMLParserContext
virtual ~FictionBook2XMLParserContext ()=0
 
virtual FictionBook2XMLParserContextleaveContext () const =0
 Destroy this context and return parent. More...
 
virtual FictionBook2XMLParserContextelement (const FictionBook2TokenData &name, const FictionBook2TokenData &ns)=0
 Create a context for parsing a child element. More...
 
virtual void startOfElement ()=0
 Signalize the start of an element. More...
 
virtual void endOfElement ()=0
 Signalize the end of an element. More...
 
virtual void attribute (const FictionBook2TokenData &name, const FictionBook2TokenData *ns, const char *value)=0
 Process an attribute. More...
 
virtual void endOfAttributes ()=0
 Signalize the end of attributes. More...
 
virtual void text (const char *value)=0
 Process textual content of an element. More...
 

Private Member Functions

FictionBook2XMLParserContextelement (const FictionBook2TokenData &name, const FictionBook2TokenData &ns) override
 Create a context for parsing a child element. More...
 
void startOfElement () override
 Signalize the start of an element. More...
 
void endOfElement () override
 Signalize the end of an element. More...
 
void endOfAttributes () override
 Signalize the end of attributes. More...
 
void attribute (const FictionBook2TokenData &name, const FictionBook2TokenData *ns, const char *value) override
 Process an attribute. More...
 
void text (const char *text) override
 Process textual content of an element. More...
 

Private Attributes

std::string m_href
 
bool m_valid
 
bool m_note
 

Additional Inherited Members

- Protected Member Functions inherited from libebook::FictionBook2StyleContextBase
FictionBook2StylegetStyle ()
 
FictionBook2TextFormatgetTextFormat ()
 
FictionBook2XMLParserContextelement (const FictionBook2TokenData &name, const FictionBook2TokenData &ns) override
 Create a context for parsing a child element. More...
 
void endOfElement () override
 Signalize the end of an element. More...
 
void attribute (const FictionBook2TokenData &name, const FictionBook2TokenData *ns, const char *value) override
 Process an attribute. More...
 
void endOfAttributes () override
 Signalize the end of attributes. More...
 
void text (const char *value) override
 Process textual content of an element. More...
 

Constructor & Destructor Documentation

◆ FictionBook2AContext()

libebook::FictionBook2AContext::FictionBook2AContext ( FictionBook2ParserContext parentContext,
const FictionBook2Style style 
)

Member Function Documentation

◆ attribute()

void libebook::FictionBook2AContext::attribute ( const FictionBook2TokenData name,
const FictionBook2TokenData ns,
const char *  value 
)
overrideprivatevirtual

Process an attribute.

Attributes are handled to the current element's context one by one.

Reimplemented from libebook::FictionBook2StyleContextBase.

◆ element()

FictionBook2XMLParserContext * libebook::FictionBook2AContext::element ( const FictionBook2TokenData name,
const FictionBook2TokenData ns 
)
overrideprivatevirtual

Create a context for parsing a child element.

Returns
A new context or 0 if the child element cannot be handled.

Reimplemented from libebook::FictionBook2StyleContextBase.

◆ endOfAttributes()

void libebook::FictionBook2AContext::endOfAttributes ( )
overrideprivatevirtual

Signalize the end of attributes.

Reimplemented from libebook::FictionBook2StyleContextBase.

◆ endOfElement()

void libebook::FictionBook2AContext::endOfElement ( )
overrideprivatevirtual

Signalize the end of an element.

Reimplemented from libebook::FictionBook2StyleContextBase.

◆ startOfElement()

void libebook::FictionBook2AContext::startOfElement ( )
overrideprivatevirtual

Signalize the start of an element.

This can be used if initialization of the context needs virtual function calls.

Implements libebook::FictionBook2XMLParserContext.

◆ text()

void libebook::FictionBook2AContext::text ( const char *  value)
overrideprivatevirtual

Process textual content of an element.

This function can be called more than once if the element has mixed content.

Reimplemented from libebook::FictionBook2StyleContextBase.

Member Data Documentation

◆ m_href

std::string libebook::FictionBook2AContext::m_href
private

◆ m_note

bool libebook::FictionBook2AContext::m_note
private

◆ m_valid

bool libebook::FictionBook2AContext::m_valid
private

Referenced by attribute(), and endOfAttributes().


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

Generated for libe-book by doxygen 1.9.5