Doxygen
|
Event handlers that can installed by the client and called while parsing a XML document. More...
#include <libxml/xml.h>
Public Types | |
using | Attributes = std::unordered_map<std::string,std::string> |
using | StartDocType = void() |
using | EndDocType = void() |
using | StartElementType = void(const std::string &,const Attributes &) |
using | EndElementType = void(const std::string &) |
using | ErrorType = void(const std::string,int,const std::string &) |
using | CharsType = void(const std::string &) |
Static Public Member Functions | |
static std::string | value (const Attributes &attrib, const std::string &key) |
Public Attributes | |
std::function< StartDocType > | startDocument |
handler invoked at the start of the document | |
std::function< EndDocType > | endDocument |
handler invoked at the end of the document | |
std::function< StartElementType > | startElement |
handler invoked when an opening tag has been found | |
std::function< EndElementType > | endElement |
handler invoked when a closing tag has been found | |
std::function< CharsType > | characters |
handler invoked when content between tags has been found | |
std::function< ErrorType > | error |
handler invoked when the parser encounters an error | |
Event handlers that can installed by the client and called while parsing a XML document.
using XMLHandlers::Attributes = std::unordered_map<std::string,std::string> |
using XMLHandlers::CharsType = void(const std::string &) |
using XMLHandlers::EndDocType = void() |
using XMLHandlers::EndElementType = void(const std::string &) |
using XMLHandlers::ErrorType = void(const std::string,int,const std::string &) |
using XMLHandlers::StartDocType = void() |
using XMLHandlers::StartElementType = void(const std::string &,const Attributes &) |
|
inlinestatic |
Definition at line 44 of file xml.h.
Referenced by elemIsVisible(), anonymous_namespace{tagreader.cpp}::TagFileParser::startBase(), anonymous_namespace{tagreader.cpp}::TagFileParser::startCompound(), anonymous_namespace{tagreader.cpp}::TagFileParser::startDocAnchor(), anonymous_namespace{tagreader.cpp}::TagFileParser::startEnumValue(), anonymous_namespace{tagreader.cpp}::TagFileParser::startIncludes(), anonymous_namespace{tagreader.cpp}::TagFileParser::startMember(), LayoutParser::startMemberDeclEntry(), LayoutParser::startMemberDefEntry(), LayoutParser::startNavEntry(), and LayoutParser::startSectionEntry().
std::function<CharsType> XMLHandlers::characters |
handler invoked when content between tags has been found
Definition at line 41 of file xml.h.
Referenced by parseTagFile().
std::function<EndDocType> XMLHandlers::endDocument |
std::function<EndElementType> XMLHandlers::endElement |
handler invoked when a closing tag has been found
Definition at line 40 of file xml.h.
Referenced by LayoutDocManager::init(), LayoutDocManager::parse(), and parseTagFile().
std::function<ErrorType> XMLHandlers::error |
handler invoked when the parser encounters an error
Definition at line 42 of file xml.h.
Referenced by LayoutDocManager::init(), LayoutDocManager::parse(), and parseTagFile().
std::function<StartDocType> XMLHandlers::startDocument |
handler invoked at the start of the document
Definition at line 37 of file xml.h.
Referenced by parseTagFile().
std::function<StartElementType> XMLHandlers::startElement |
handler invoked when an opening tag has been found
Definition at line 39 of file xml.h.
Referenced by LayoutDocManager::init(), LayoutDocManager::parse(), and parseTagFile().