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 getSpaceCount() const
Get the count of spaces processed so far.
XMLSize_t characterCount_
unsigned int getElementCount() const
Get the count of elements processed so far.
void fatalError(const SAXParseException &exception) override
unsigned int getCharacterCount() const
Get the count of characters processed so far.
void characters(const XMLCh *chars, XMLSize_t length) override
virtual void setUserNS(bool userns)
void comment(const XMLCh *chars, XMLSize_t length) override
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.
unsigned int getAttrCount() const
Get the count of attributes processed so far.
bool getSawErrors() const
Did the XML parser see any errors?
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