Base class for non-leaf element contexts. More...
#include <FictionBook2ParserContext.h>
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. | |
| FictionBook2XMLParserContext * | leaveContext () const override |
| Destroy this context and return parent. | |
| FictionBook2Collector * | getCollector () const |
| Get the collector. | |
| FictionBook2ParserContext * | getParentContext () const |
| Get the parent context. | |
Public Member Functions inherited from libebook::FictionBook2XMLParserContext | |
| virtual | ~FictionBook2XMLParserContext ()=0 |
| virtual FictionBook2XMLParserContext * | element (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. | |
Base class for non-leaf element contexts.
It provides empty implementations for functions that are typically not needed for processing non-leaf elements.
|
explicit |
Referenced by libebook::FictionBook2BinaryContext::FictionBook2BinaryContext(), libebook::FictionBook2BlockFormatContextBase::FictionBook2BlockFormatContextBase(), libebook::FictionBook2BodyContext::FictionBook2BodyContext(), libebook::FictionBook2ImageContext::FictionBook2ImageContext(), libebook::FictionBook2SectionContext::FictionBook2SectionContext(), and libebook::FictionBook2SectionContext::FictionBook2SectionContext().
|
overrideprivatevirtual |
Signalize the end of attributes.
Implements libebook::FictionBook2XMLParserContext.
|
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.
|
overrideprivatevirtual |
Process textual content of an element.
This function can be called more than once if the element has mixed content.
Implements libebook::FictionBook2XMLParserContext.