libebook::FictionBook2NodeContextBase Class Reference

Base class for non-leaf element contexts. More...

#include <FictionBook2ParserContext.h>

Inheritance diagram for libebook::FictionBook2NodeContextBase:
libebook::FictionBook2ParserContext libebook::FictionBook2XMLParserContext libebook::FictionBook2BinaryContext libebook::FictionBook2BlockFormatContextBase libebook::FictionBook2BodyContext libebook::FictionBook2ImageContext libebook::FictionBook2SectionContext libebook::FictionBook2AnnotationContext libebook::FictionBook2CiteContext libebook::FictionBook2EpigraphContext libebook::FictionBook2PoemContext libebook::FictionBook2StanzaContext libebook::FictionBook2TableContext libebook::FictionBook2TitleContext libebook::FictionBook2TrContext

Public Member Functions

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

Private Member Functions

void startOfElement () override
 Signalize the start of an element.
 
void endOfAttributes () override
 Signalize the end of attributes.
 
void text (const char *value) override
 Process textual content of an element.
 

Detailed Description

Base class for non-leaf element contexts.

It provides empty implementations for functions that are typically not needed for processing non-leaf elements.

Constructor & Destructor Documentation

◆ FictionBook2NodeContextBase()

libebook::FictionBook2NodeContextBase::FictionBook2NodeContextBase ( FictionBook2ParserContext parentContext,
FictionBook2Collector collector = nullptr 
)
explicit

Member Function Documentation

◆ endOfAttributes()

void libebook::FictionBook2NodeContextBase::endOfAttributes ( )
overrideprivatevirtual

Signalize the end of attributes.

Implements libebook::FictionBook2XMLParserContext.

◆ startOfElement()

void libebook::FictionBook2NodeContextBase::startOfElement ( )
overrideprivatevirtual

Signalize the start of an element.

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

Implements libebook::FictionBook2XMLParserContext.

Reimplemented in libebook::FictionBook2PoemContext, and libebook::FictionBook2TableContext.

◆ text()

void libebook::FictionBook2NodeContextBase::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.

Implements libebook::FictionBook2XMLParserContext.


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

Generated for libe-book by doxygen 1.9.8