1 #ifndef DETECTOR_DESCRIPTION_PARSER_DDL_SAX2_HANDLER_H 2 #define DETECTOR_DESCRIPTION_PARSER_DDL_SAX2_HANDLER_H 4 #include <xercesc/sax2/Attributes.hpp> 5 #include <xercesc/sax2/DefaultHandler.hpp> 50 void startElement(
const XMLCh* uri,
const XMLCh* localname,
const XMLCh* qname,
const Attributes& attrs)
override;
51 void endElement(
const XMLCh* uri,
const XMLCh* localname,
const XMLCh* qname)
override;
52 void characters(
const XMLCh* chars, XMLSize_t length)
override;
53 void comment(
const XMLCh* chars, XMLSize_t length)
override;
~DDLSAX2Handler() override
void error(const SAXParseException &exception) override
unsigned int getAttrCount() const
Get the count of attributes processed so far.
XMLSize_t characterCount_
void fatalError(const SAXParseException &exception) override
void characters(const XMLCh *chars, XMLSize_t length) override
bool getSawErrors() const
Did the XML parser see any errors?
virtual void setUserNS(bool userns)
unsigned int getElementCount() const
Get the count of elements processed so far.
unsigned int getCharacterCount() const
Get the count of characters processed so far.
void comment(const XMLCh *chars, XMLSize_t length) override
unsigned int getSpaceCount() const
Get the count of spaces processed so far.
void endElement(const XMLCh *uri, const XMLCh *localname, const XMLCh *qname) override
void warning(const SAXParseException &exception) override
void resetDocument() override
virtual void setNameSpace(const std::string &nms)
void ignorableWhitespace(const XMLCh *chars, XMLSize_t length) override
XERCES_CPP_NAMESPACE::Attributes Attributes
DDLSAX2Handler inherits from Xerces C++ DefaultHandler.
virtual void dumpStats(const std::string &fname)
XERCES_CPP_NAMESPACE::SAXParseException SAXParseException
void startElement(const XMLCh *uri, const XMLCh *localname, const XMLCh *qname, const Attributes &attrs) override