libebook::FictionBook2ImageContext Class Reference

#include <FictionBook2BlockContext.h>

Inheritance diagram for libebook::FictionBook2ImageContext:
libebook::FictionBook2NodeContextBase libebook::FictionBook2ParserContext libebook::FictionBook2XMLParserContext

Public Member Functions

 FictionBook2ImageContext (std::shared_ptr< FictionBook2ParserContext > parentContext)
Public Member Functions inherited from libebook::FictionBook2NodeContextBase
 FictionBook2NodeContextBase (std::shared_ptr< FictionBook2ParserContext > parentContext, FictionBook2Collector *collector=nullptr)
Public Member Functions inherited from libebook::FictionBook2ParserContext
 FictionBook2ParserContext (std::shared_ptr< FictionBook2ParserContext > parentContext, FictionBook2Collector *collector=nullptr)
 Create a new context with parentContext as parent.
virtual ~FictionBook2ParserContext ()
std::shared_ptr< FictionBook2XMLParserContextleaveContext () const override
 Destroy this context and return parent.
FictionBook2CollectorgetCollector () const
 Get the collector.
std::shared_ptr< FictionBook2ParserContextgetParentContext () const
 Get the parent context.
Public Member Functions inherited from libebook::FictionBook2XMLParserContext
virtual ~FictionBook2XMLParserContext ()=0

Private Member Functions

std::shared_ptr< FictionBook2XMLParserContextelement (const FictionBook2TokenData &name, const FictionBook2TokenData &ns) override
 Create a context for parsing a child element.
void endOfElement () override
 Signalize the end of an element.
void attribute (const FictionBook2TokenData &name, const FictionBook2TokenData *ns, const char *value) override
 Process an attribute.

Private Attributes

std::string m_href
std::string m_altText
bool m_valid

Constructor & Destructor Documentation

◆ FictionBook2ImageContext()

libebook::FictionBook2ImageContext::FictionBook2ImageContext ( std::shared_ptr< FictionBook2ParserContext > parentContext)

Member Function Documentation

◆ attribute()

void libebook::FictionBook2ImageContext::attribute ( const FictionBook2TokenData & name,
const FictionBook2TokenData * ns,
const char * value )
overrideprivatevirtual

Process an attribute.

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

Implements libebook::FictionBook2XMLParserContext.

◆ element()

std::shared_ptr< FictionBook2XMLParserContext > libebook::FictionBook2ImageContext::element ( const FictionBook2TokenData & name,
const FictionBook2TokenData & ns )
overrideprivatevirtual

Create a context for parsing a child element.

Returns
A new context or 0 if the child element cannot be handled.

Implements libebook::FictionBook2XMLParserContext.

◆ endOfElement()

void libebook::FictionBook2ImageContext::endOfElement ( )
overrideprivatevirtual

Signalize the end of an element.

Implements libebook::FictionBook2XMLParserContext.

Member Data Documentation

◆ m_altText

std::string libebook::FictionBook2ImageContext::m_altText
private

◆ m_href

std::string libebook::FictionBook2ImageContext::m_href
private

◆ m_valid

bool libebook::FictionBook2ImageContext::m_valid
private

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

Generated for libe-book by doxygen 1.16.1