Base class for all contexts. More...
#include <FB2ParserContext.h>
Public Member Functions | |
FB2ParserContext (FB2ParserContext *parentContext, FB2Collector *collector=0) | |
Create a new context with parentContext as parent. | |
virtual FB2XMLParserContext * | leaveContext () const |
Destroy this context and return parent. | |
FB2Collector * | getCollector () const |
Get the collector. | |
FB2ParserContext * | getParentContext () const |
Get the parent context. | |
Private Member Functions | |
FB2ParserContext (const FB2ParserContext &other) | |
FB2ParserContext & | operator= (const FB2ParserContext &other) |
Private Attributes | |
FB2Collector *const | m_collector |
FB2ParserContext *const | m_parentContext |
Base class for all contexts.
libebook::FB2ParserContext::FB2ParserContext | ( | const FB2ParserContext & | other | ) | [private] |
libebook::FB2ParserContext::FB2ParserContext | ( | FB2ParserContext * | parentContext, |
FB2Collector * | collector = 0 |
||
) | [explicit] |
Create a new context with parentContext
as parent.
[in] | parentContext | A parent context. |
[in] | collector | A collector for the context's content. |
FB2Collector * libebook::FB2ParserContext::getCollector | ( | ) | const |
Get the collector.
Referenced by libebook::FB2ParaContextBase::attribute(), libebook::FB2TableContext::attribute(), libebook::FB2CiteContext::attribute(), libebook::FB2CellContext::attribute(), libebook::FB2EpigraphContext::attribute(), libebook::FB2ImageContext::attribute(), libebook::FB2PoemContext::attribute(), libebook::FB2SectionContext::attribute(), libebook::FB2TitleContext::attribute(), libebook::FB2ParaContextBase::endOfElement(), libebook::FB2BodyContext::endOfElement(), libebook::FB2TableContext::endOfElement(), libebook::FB2CellContext::endOfElement(), libebook::FB2EmptyLineContext::endOfElement(), libebook::FB2InlineImageContext::endOfElement(), libebook::FB2ImageContext::endOfElement(), libebook::FB2TrContext::endOfElement(), libebook::FB2CustomInfoContext::endOfElement(), libebook::FB2StanzaContext::endOfElement(), libebook::FB2TitleInfoContext::endOfElement(), libebook::FB2CellContext::openCell(), libebook::FB2TrContext::openRow(), libebook::FB2ParaContextBase::startOfElement(), libebook::FB2BodyContext::startOfElement(), libebook::FB2TableContext::startOfElement(), libebook::FB2PoemContext::startOfElement(), libebook::FB2BinaryContext::text(), libebook::FB2AContext::text(), libebook::FB2BookTitleContext::text(), libebook::FB2DateContext::text(), libebook::FB2StyleContextBase::text(), libebook::FB2KeywordsContext::text(), libebook::FB2LangContext::text(), libebook::FB2PublisherContext::text(), libebook::FB2SrcUrlContext::text(), and libebook::FB2VersionContext::text().
Get the parent context.
Referenced by libebook::FB2SkipElementContext::leaveContext().
FB2XMLParserContext * libebook::FB2ParserContext::leaveContext | ( | ) | const [virtual] |
Destroy this context and return parent.
Implements libebook::FB2XMLParserContext.
Reimplemented in libebook::FB2SkipElementContext.
FB2ParserContext& libebook::FB2ParserContext::operator= | ( | const FB2ParserContext & | other | ) | [private] |
FB2Collector* const libebook::FB2ParserContext::m_collector [private] |
Referenced by getCollector().
FB2ParserContext* const libebook::FB2ParserContext::m_parentContext [private] |
Referenced by getParentContext(), and leaveContext().