Go to the documentation of this file. 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;
unsigned int getSpaceCount() const
Get the count of spaces processed so far.
XMLSize_t characterCount_
void error(const SAXParseException &exception) override
XERCES_CPP_NAMESPACE::SAXParseException SAXParseException
unsigned int getElementCount() const
Get the count of elements processed so far.
virtual void setUserNS(bool userns)
DDLSAX2Handler inherits from Xerces C++ DefaultHandler.
void characters(const XMLCh *chars, XMLSize_t length) override
void comment(const XMLCh *chars, XMLSize_t length) override
void fatalError(const SAXParseException &exception) override
unsigned int getCharacterCount() const
Get the count of characters processed so far.
void endElement(const XMLCh *uri, const XMLCh *localname, const XMLCh *qname) override
virtual void setNameSpace(const std::string &nms)
void ignorableWhitespace(const XMLCh *chars, XMLSize_t length) override
unsigned int getAttrCount() const
Get the count of attributes processed so far.
void resetDocument() override
XERCES_CPP_NAMESPACE::Attributes Attributes
bool getSawErrors() const
Did the XML parser see any errors?
void warning(const SAXParseException &exception) override
void startElement(const XMLCh *uri, const XMLCh *localname, const XMLCh *qname, const Attributes &attrs) override
~DDLSAX2Handler() override
virtual void dumpStats(const std::string &fname)