1 #ifndef DETECTORDESCRIPTION_PARSER_DDLSAX2HANDLER_H 2 #define DETECTORDESCRIPTION_PARSER_DDLSAX2HANDLER_H 4 #include <xercesc/sax2/Attributes.hpp> 5 #include <xercesc/sax2/DefaultHandler.hpp> 66 virtual void startElement(
const XMLCh*
const uri,
const XMLCh*
const localname,
67 const XMLCh*
const qname,
const Attributes& attrs)
override;
68 virtual void endElement(
const XMLCh*
const uri,
const XMLCh*
const localname,
69 const XMLCh*
const qname)
override;
70 virtual void characters(
const XMLCh*
const chars,
const XMLSize_t length)
override;
71 virtual void comment (
const XMLCh *
const chars,
const XMLSize_t length )
override;
72 virtual void ignorableWhitespace(
const XMLCh*
const chars,
const XMLSize_t length)
override;
79 virtual void error(
const SAXParseException& exception)
override;
80 virtual void fatalError(
const SAXParseException& exception)
override;
virtual void error(const SAXParseException &exception) override
virtual void endElement(const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname) override
unsigned int getAttrCount() const
Get the count of attributes processed so far.
virtual void comment(const XMLCh *const chars, const XMLSize_t length) override
XMLSize_t characterCount_
virtual void characters(const XMLCh *const chars, const XMLSize_t length) override
virtual void fatalError(const SAXParseException &exception) override
XERCES_CPP_NAMESPACE::SAXParseException SAXParseException
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.
unsigned int getSpaceCount() const
Get the count of spaces processed so far.
virtual void warning(const SAXParseException &exception) override
virtual void resetDocument() override
virtual void setNameSpace(const std::string &nms)
DDLSAX2Handler inherits from Xerces C++ DefaultHandler.
virtual void startElement(const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const Attributes &attrs) override
virtual void dumpStats(const std::string &fname)
XERCES_CPP_NAMESPACE::Attributes Attributes
virtual void ignorableWhitespace(const XMLCh *const chars, const XMLSize_t length) override