#include <XMLTreeWalker.h>
Classes | |
class | Attribute |
class | AttributeIterator |
class | Iterator |
Public Types | |
typedef int(* | TokenizerFun_t )(const char *, std::size_t) |
Public Member Functions | |
XMLTreeWalker (const XMLTreeNodePtr_t &p, TokenizerFun_t tok=0) | |
bool | empty () const |
Iterator | begin () const |
const Iterator | end () const |
bool | hasParent () const |
const XMLTreeWalker | getParent () const |
bool | isDocument () const |
bool | isElement () const |
bool | isText () const |
int | getId () const |
const std::string | getName () const |
const std::string | getNamespace () const |
const std::string & | getText () const |
bool | hasAttributes () const |
AttributeIterator | beginAttributes () const |
const AttributeIterator | endAttributes () const |
CSSSelectResultsPtr_t | getStyle (const XMLStylesheets_t &sheets, bool quirks=false, const CSSStylesheetPtr_t &inlineSheet=CSSStylesheetPtr_t()) const |
Private Attributes | |
XMLTreeNodePtr_t | m_impl |
TokenizerFun_t | m_tok |
typedef int(* libebook::XMLTreeWalker::TokenizerFun_t)(const char *, std::size_t) |
|
explicit |
Referenced by getParent(), and libebook::XMLTreeWalker::Iterator::operator++().
XMLTreeWalker::Iterator libebook::XMLTreeWalker::begin | ( | ) | const |
Referenced by libebook::EBOOKHTMLParser::parse(), and libebook::EBOOKHTMLParser::processNode().
XMLTreeWalker::AttributeIterator libebook::XMLTreeWalker::beginAttributes | ( | ) | const |
bool libebook::XMLTreeWalker::empty | ( | ) | const |
const XMLTreeWalker::Iterator libebook::XMLTreeWalker::end | ( | ) | const |
Referenced by libebook::EBOOKHTMLParser::parse(), and libebook::EBOOKHTMLParser::processNode().
const XMLTreeWalker::AttributeIterator libebook::XMLTreeWalker::endAttributes | ( | ) | const |
int libebook::XMLTreeWalker::getId | ( | ) | const |
Referenced by libebook::EBOOKHTMLParser::endElement(), and libebook::EBOOKHTMLParser::startElement().
const std::string libebook::XMLTreeWalker::getName | ( | ) | const |
Referenced by libebook::EBOOKHTMLParser::endElement(), and libebook::EBOOKHTMLParser::startElement().
const std::string libebook::XMLTreeWalker::getNamespace | ( | ) | const |
const XMLTreeWalker libebook::XMLTreeWalker::getParent | ( | ) | const |
CSSSelectResultsPtr_t libebook::XMLTreeWalker::getStyle | ( | const XMLStylesheets_t & | sheets, |
bool | quirks = false , |
||
const CSSStylesheetPtr_t & | inlineSheet = CSSStylesheetPtr_t() |
||
) | const |
const std::string & libebook::XMLTreeWalker::getText | ( | ) | const |
Referenced by libebook::EBOOKHTMLParser::text().
bool libebook::XMLTreeWalker::hasAttributes | ( | ) | const |
bool libebook::XMLTreeWalker::hasParent | ( | ) | const |
bool libebook::XMLTreeWalker::isDocument | ( | ) | const |
bool libebook::XMLTreeWalker::isElement | ( | ) | const |
bool libebook::XMLTreeWalker::isText | ( | ) | const |
Referenced by libebook::EBOOKHTMLParser::text().
|
private |
Referenced by begin(), beginAttributes(), empty(), end(), endAttributes(), getId(), getName(), getNamespace(), getParent(), getStyle(), getText(), hasAttributes(), hasParent(), isDocument(), isElement(), and isText().
|
private |