#include <FictionBook2BlockContext.h>
Public Member Functions | |
| FictionBook2SectionContext (FictionBook2ParserContext *parentContext, const boost::optional< std::string > &lang) | |
| FictionBook2SectionContext (FictionBook2ParserContext *parentContext, uint8_t level, const boost::optional< std::string > &lang) | |
Public Member Functions inherited from libebook::FictionBook2NodeContextBase | |
| FictionBook2NodeContextBase (FictionBook2ParserContext *parentContext, FictionBook2Collector *collector=nullptr) | |
Public Member Functions inherited from libebook::FictionBook2ParserContext | |
| FictionBook2ParserContext (FictionBook2ParserContext *parentContext, FictionBook2Collector *collector=nullptr) | |
Create a new context with parentContext as parent. More... | |
| FictionBook2XMLParserContext * | leaveContext () const override |
| Destroy this context and return parent. More... | |
| FictionBook2Collector * | getCollector () const |
| Get the collector. More... | |
| FictionBook2ParserContext * | getParentContext () const |
| Get the parent context. More... | |
Public Member Functions inherited from libebook::FictionBook2XMLParserContext | |
| virtual | ~FictionBook2XMLParserContext ()=0 |
Private Member Functions | |
| FictionBook2XMLParserContext * | element (const FictionBook2TokenData &name, const FictionBook2TokenData &ns) override |
| Create a context for parsing a child 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... | |
| FictionBook2BlockFormat | makeBlockFormat () const |
Private Attributes | |
| boost::optional< uint8_t > | m_level |
| boost::optional< std::string > | m_lang |
| libebook::FictionBook2SectionContext::FictionBook2SectionContext | ( | FictionBook2ParserContext * | parentContext, |
| const boost::optional< std::string > & | lang | ||
| ) |
Referenced by element().
| libebook::FictionBook2SectionContext::FictionBook2SectionContext | ( | FictionBook2ParserContext * | parentContext, |
| uint8_t | level, | ||
| const boost::optional< std::string > & | lang | ||
| ) |
|
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.
|
overrideprivatevirtual |
Signalize the end of an element.
Implements libebook::FictionBook2XMLParserContext.
|
private |
Referenced by element().
|
private |
Referenced by attribute(), element(), and makeBlockFormat().
|
private |
Referenced by element().