libebook::FictionBook2TableContext Class Reference

#include <FictionBook2TableContext.h>

Inheritance diagram for libebook::FictionBook2TableContext:
libebook::FictionBook2BlockFormatContextBase libebook::FictionBook2NodeContextBase libebook::FictionBook2ParserContext libebook::FictionBook2XMLParserContext

Public Member Functions

 FictionBook2TableContext (std::shared_ptr< FictionBook2ParserContext > parentContext, const FictionBook2BlockFormat &format)
 
 ~FictionBook2TableContext () override
 
- Public Member Functions inherited from libebook::FictionBook2BlockFormatContextBase
 FictionBook2BlockFormatContextBase (std::shared_ptr< FictionBook2ParserContext > parentContext, const FictionBook2BlockFormat &format)
 
FictionBook2BlockFormatgetBlockFormat ()
 
const FictionBook2BlockFormatgetBlockFormat () const
 
void setLang (const char *lang)
 
- 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. More...
 
virtual ~FictionBook2ParserContext ()
 
std::shared_ptr< FictionBook2XMLParserContextleaveContext () const override
 Destroy this context and return parent. More...
 
FictionBook2CollectorgetCollector () const
 Get the collector. More...
 
std::shared_ptr< FictionBook2ParserContextgetParentContext () const
 Get the parent context. More...
 
- Public Member Functions inherited from libebook::FictionBook2XMLParserContext
virtual ~FictionBook2XMLParserContext ()=0
 

Private Member Functions

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

Private Attributes

std::shared_ptr< FictionBook2TableModelm_model
 

Constructor & Destructor Documentation

libebook::FictionBook2TableContext::FictionBook2TableContext ( const FictionBook2TableContext other)
private
libebook::FictionBook2TableContext::FictionBook2TableContext ( std::shared_ptr< FictionBook2ParserContext parentContext,
const FictionBook2BlockFormat format 
)
libebook::FictionBook2TableContext::~FictionBook2TableContext ( )
override

Member Function Documentation

void libebook::FictionBook2TableContext::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.

std::shared_ptr< FictionBook2XMLParserContext > libebook::FictionBook2TableContext::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.

void libebook::FictionBook2TableContext::endOfElement ( )
overrideprivatevirtual

Signalize the end of an element.

Implements libebook::FictionBook2XMLParserContext.

FictionBook2TableContext& libebook::FictionBook2TableContext::operator= ( const FictionBook2TableContext other)
private
void libebook::FictionBook2TableContext::startOfElement ( )
overrideprivatevirtual

Signalize the start of an element.

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

Reimplemented from libebook::FictionBook2NodeContextBase.

Member Data Documentation

std::shared_ptr<FictionBook2TableModel> libebook::FictionBook2TableContext::m_model
private

Referenced by element().


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

Generated for libe-book by doxygen 1.8.10