#include <FictionBook2MetadataContext.h>
Public Member Functions | |
FictionBook2TranslatorContext (FictionBook2ParserContext *parentContext) | |
![]() | |
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. | |
![]() | |
virtual | ~FictionBook2XMLParserContext ()=0 |
virtual FictionBook2XMLParserContext * | leaveContext () const =0 |
Destroy this context and return parent. | |
virtual FictionBook2XMLParserContext * | element (const FictionBook2TokenData &name, const FictionBook2TokenData &ns)=0 |
Create a context for parsing a child element. | |
virtual void | startOfElement ()=0 |
Signalize the start of an 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. | |
virtual void | endOfAttributes ()=0 |
Signalize the end of attributes. | |
virtual void | text (const char *value)=0 |
Process textual content of an element. | |
Private Member Functions | |
FictionBook2XMLParserContext * | element (const FictionBook2TokenData &name, const FictionBook2TokenData &ns) override |
Create a context for parsing a child element. | |
void | startOfElement () override |
Signalize the start of an element. | |
void | endOfElement () override |
Signalize the end of an element. | |
void | endOfAttributes () override |
Signalize the end of attributes. | |
void | attribute (const FictionBook2TokenData &name, const FictionBook2TokenData *ns, const char *value) override |
Process an attribute. | |
void | text (const char *value) override |
Process textual content of an element. | |
|
explicit |
|
overrideprivatevirtual |
Process an attribute.
Attributes are handled to the current element's context one by one.
Implements libebook::FictionBook2XMLParserContext.
|
overrideprivatevirtual |
Create a context for parsing a child element.
0
if the child element cannot be handled. Implements libebook::FictionBook2XMLParserContext.
|
inlineoverrideprivatevirtual |
Signalize the end of attributes.
Implements libebook::FictionBook2XMLParserContext.
|
overrideprivatevirtual |
Signalize the end of an element.
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.
|
overrideprivatevirtual |
Process textual content of an element.
This function can be called more than once if the element has mixed content.
Implements libebook::FictionBook2XMLParserContext.