DDLSAX2Handler inherits from Xerces C++ DefaultHandler. More...
#include <DDLSAX2Handler.h>
Public Types | |
using | Attributes = XERCES_CPP_NAMESPACE::Attributes |
using | SAXParseException = XERCES_CPP_NAMESPACE::SAXParseException |
Public Member Functions | |
void | characters (const XMLCh *chars, XMLSize_t length) override |
void | comment (const XMLCh *chars, XMLSize_t length) override |
DDLSAX2Handler () | |
virtual void | dumpStats (const std::string &fname) |
void | endElement (const XMLCh *uri, const XMLCh *localname, const XMLCh *qname) override |
void | error (const SAXParseException &exception) override |
void | fatalError (const SAXParseException &exception) override |
unsigned int | getAttrCount () const |
Get the count of attributes processed so far. More... | |
unsigned int | getCharacterCount () const |
Get the count of characters processed so far. More... | |
unsigned int | getElementCount () const |
Get the count of elements processed so far. More... | |
bool | getSawErrors () const |
Did the XML parser see any errors? More... | |
unsigned int | getSpaceCount () const |
Get the count of spaces processed so far. More... | |
void | ignorableWhitespace (const XMLCh *chars, XMLSize_t length) override |
void | resetDocument () override |
virtual void | setNameSpace (const std::string &nms) |
virtual void | setUserNS (bool userns) |
void | startElement (const XMLCh *uri, const XMLCh *localname, const XMLCh *qname, const Attributes &attrs) override |
void | warning (const SAXParseException &exception) override |
~DDLSAX2Handler () override | |
Protected Attributes | |
XMLSize_t | attrCount_ |
XMLSize_t | characterCount_ |
XMLSize_t | elementCount_ |
std::string | nmspace_ |
bool | sawErrors_ |
XMLSize_t | spaceCount_ |
bool | userNS_ |
DDLSAX2Handler inherits from Xerces C++ DefaultHandler.
begin: Mon Oct 22 2001
The DefaultHandler of Xerces C++ provides an interface to the SAX2 event driven processing of XML documents. It does so by providing methods which are redefined by the inheriting class (DDLSAX2Handler in this case) to provide the desired processing for each event.
In this case, we accumulate some statistics. This class does nothing with startElement and endElement events.
Definition at line 27 of file DDLSAX2Handler.h.
using DDLSAX2Handler::Attributes = XERCES_CPP_NAMESPACE::Attributes |
Definition at line 30 of file DDLSAX2Handler.h.
using DDLSAX2Handler::SAXParseException = XERCES_CPP_NAMESPACE::SAXParseException |
Definition at line 31 of file DDLSAX2Handler.h.
DDLSAX2Handler::DDLSAX2Handler | ( | void | ) |
Definition at line 10 of file DDLSAX2Handler.cc.
|
override |
Definition at line 19 of file DDLSAX2Handler.cc.
|
override |
Definition at line 45 of file DDLSAX2Handler.cc.
References characterCount_.
Referenced by getSpaceCount().
|
override |
Definition at line 52 of file DDLSAX2Handler.cc.
Referenced by getSpaceCount().
|
virtual |
Definition at line 74 of file DDLSAX2Handler.cc.
References gather_cfg::cout, getAttrCount(), getCharacterCount(), getElementCount(), and getSpaceCount().
Referenced by getSpaceCount().
|
override |
Definition at line 37 of file DDLSAX2Handler.cc.
Referenced by getSpaceCount().
|
override |
Definition at line 89 of file DDLSAX2Handler.cc.
References cms::xerces::cStr(), and sawErrors_.
Referenced by Page1Parser.Page1Parser::check_for_whole_start_tag(), and getSpaceCount().
|
override |
Definition at line 100 of file DDLSAX2Handler.cc.
References cms::xerces::cStr(), Exception, sawErrors_, and toolbox::toString().
Referenced by getSpaceCount().
|
inline |
Get the count of attributes processed so far.
Definition at line 42 of file DDLSAX2Handler.h.
References attrCount_.
Referenced by dumpStats().
|
inline |
Get the count of characters processed so far.
Definition at line 47 of file DDLSAX2Handler.h.
References characterCount_.
Referenced by dumpStats().
|
inline |
Get the count of elements processed so far.
Definition at line 37 of file DDLSAX2Handler.h.
References elementCount_.
Referenced by dumpStats().
|
inline |
Did the XML parser see any errors?
Definition at line 52 of file DDLSAX2Handler.h.
References sawErrors_.
|
inline |
Get the count of spaces processed so far.
Definition at line 57 of file DDLSAX2Handler.h.
References characters(), comment(), dumpStats(), endElement(), error(), cppFunctionSkipper::exception, fatalError(), alignmentValidation::fname, ignorableWhitespace(), resetDocument(), spaceCount_, startElement(), AlCaHLTBitMon_QueryRunRegistry::string, and warning().
Referenced by dumpStats().
|
override |
Definition at line 58 of file DDLSAX2Handler.cc.
References spaceCount_.
Referenced by getSpaceCount().
|
override |
Definition at line 65 of file DDLSAX2Handler.cc.
References attrCount_, characterCount_, elementCount_, and spaceCount_.
Referenced by getSpaceCount().
|
virtual |
Definition at line 132 of file DDLSAX2Handler.cc.
References nmspace_.
Referenced by DDLParser::parse(), and DDLParser::parseOneFile().
|
virtual |
This allows the DDLSAX2Handler and objects that inherit from it to set the userNS_ flag to indicate false[default] use the filename of the file being handled as the DD namespace true assume ALL the "name" attributes have DD namespace specified.
Definition at line 126 of file DDLSAX2Handler.cc.
References userNS_.
Referenced by XMLIdealGeometryESSource::produce(), and XMLIdealMagneticFieldGeometryESProducer::produce().
|
override |
Definition at line 27 of file DDLSAX2Handler.cc.
References attrCount_, and elementCount_.
Referenced by getSpaceCount().
|
override |
Definition at line 116 of file DDLSAX2Handler.cc.
References cms::xerces::cStr().
Referenced by getSpaceCount().
|
protected |
Definition at line 99 of file DDLSAX2Handler.h.
Referenced by getAttrCount(), resetDocument(), and startElement().
|
protected |
Definition at line 100 of file DDLSAX2Handler.h.
Referenced by characters(), getCharacterCount(), and resetDocument().
|
protected |
Definition at line 101 of file DDLSAX2Handler.h.
Referenced by getElementCount(), resetDocument(), and startElement().
|
protected |
Definition at line 105 of file DDLSAX2Handler.h.
Referenced by DDLSAX2FileHandler::endElement(), setNameSpace(), DDLSAX2ExpressionHandler::startElement(), and DDLSAX2FileHandler::startElement().
|
protected |
Definition at line 103 of file DDLSAX2Handler.h.
Referenced by error(), fatalError(), and getSawErrors().
|
protected |
Definition at line 102 of file DDLSAX2Handler.h.
Referenced by getSpaceCount(), ignorableWhitespace(), and resetDocument().
|
protected |
Definition at line 104 of file DDLSAX2Handler.h.
Referenced by DDLSAX2FileHandler::endElement(), and setUserNS().