libebook::EBOOKXMLTextContextBase Class Reference

#include <EBOOKXMLContextBase.h>

Inheritance diagram for libebook::EBOOKXMLTextContextBase:
libebook::EBOOKXMLContext

Protected Member Functions

void startOfElement () override
 Signalize the start of an element. More...
 
void attribute (int name, const char *value) override
 Process an attribute. More...
 
void endOfAttributes () override
 Signalize the end of attributes. More...
 
std::shared_ptr< EBOOKXMLContextelement (int name) override
 Create a context for parsing a child element. More...
 
void endOfElement () override
 Signalize the end of an element. More...
 

Additional Inherited Members

- Public Member Functions inherited from libebook::EBOOKXMLContext
virtual ~EBOOKXMLContext ()=0
 
virtual void text (const char *value)=0
 Process textual content of an element. More...
 

Member Function Documentation

◆ attribute()

void libebook::EBOOKXMLTextContextBase::attribute ( int  name,
const char *  value 
)
overrideprotectedvirtual

Process an attribute.

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

Implements libebook::EBOOKXMLContext.

◆ element()

shared_ptr< EBOOKXMLContext > libebook::EBOOKXMLTextContextBase::element ( int  name)
overrideprotectedvirtual

Create a context for parsing a child element.

Returns
A new context or an empty pointer if the child element cannot be handled.

Implements libebook::EBOOKXMLContext.

◆ endOfAttributes()

void libebook::EBOOKXMLTextContextBase::endOfAttributes ( )
overrideprotectedvirtual

Signalize the end of attributes.

Implements libebook::EBOOKXMLContext.

◆ endOfElement()

void libebook::EBOOKXMLTextContextBase::endOfElement ( )
overrideprotectedvirtual

Signalize the end of an element.

Implements libebook::EBOOKXMLContext.

◆ startOfElement()

void libebook::EBOOKXMLTextContextBase::startOfElement ( )
overrideprotectedvirtual

Signalize the start of an element.

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

Implements libebook::EBOOKXMLContext.


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

Generated for libe-book by doxygen 1.8.14