Base class for non-leaf element contexts. More...
#include <FB2ParserContext.h>
Public Member Functions | |
FB2NodeContextBase (FB2ParserContext *parentContext, FB2Collector *collector=0) | |
Private Member Functions | |
virtual void | startOfElement () |
Signalize the start of an element. | |
virtual void | endOfAttributes () |
Signalize the end of attributes. | |
virtual void | text (const char *value) |
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.
libebook::FB2NodeContextBase::FB2NodeContextBase | ( | FB2ParserContext * | parentContext, |
FB2Collector * | collector = 0 |
||
) | [explicit] |
void libebook::FB2NodeContextBase::endOfAttributes | ( | ) | [private, virtual] |
Signalize the end of attributes.
Implements libebook::FB2XMLParserContext.
void libebook::FB2NodeContextBase::startOfElement | ( | ) | [private, virtual] |
Signalize the start of an element.
This can be used if initialization of the context needs virtual function calls.
Implements libebook::FB2XMLParserContext.
Reimplemented in libebook::FB2PoemContext, libebook::FB2TableContext, libebook::FB2BodyContext, and libebook::FB2AnnotationContext.
void libebook::FB2NodeContextBase::text | ( | const char * | value | ) | [private, virtual] |
Process textual content of an element.
This function can be called more than once if the element has mixed content.
Implements libebook::FB2XMLParserContext.
Reimplemented in libebook::FB2AnnotationContext, and libebook::FB2BinaryContext.