DDLSAX2Handler inherits from Xerces C++ DefaultHandler. More...
#include <DDLSAX2Handler.h>
Public Types | |
typedef XERCES_CPP_NAMESPACE::Attributes | Attributes |
typedef XERCES_CPP_NAMESPACE::SAXParseException | SAXParseException |
Public Member Functions | |
virtual void | characters (const XMLCh *const chars, const unsigned int length) |
virtual void | comment (const XMLCh *const chars, const unsigned int length) |
DDLSAX2Handler () | |
virtual void | dumpStats (const std::string &fname) |
virtual void | endElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname) |
virtual void | error (const SAXParseException &exception) |
virtual void | fatalError (const SAXParseException &exception) |
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... | |
virtual void | ignorableWhitespace (const XMLCh *const chars, const unsigned int length) |
virtual void | resetDocument () |
virtual void | setNameSpace (const std::string &nms) |
virtual void | setUserNS (bool userns) |
virtual void | startElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const Attributes &attrs) |
virtual void | warning (const SAXParseException &exception) |
~DDLSAX2Handler () | |
Protected Attributes | |
unsigned int | attrCount_ |
unsigned int | characterCount_ |
unsigned int | elementCount_ |
std::string | nmspace_ |
bool | sawErrors_ |
unsigned int | spaceCount_ |
bool | userNS_ |
DDLSAX2Handler inherits from Xerces C++ DefaultHandler.
begin: Mon Oct 22 2001 email: case@ ucdh ep.uc davi s.edu
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 36 of file DDLSAX2Handler.h.
typedef XERCES_CPP_NAMESPACE::Attributes DDLSAX2Handler::Attributes |
Definition at line 40 of file DDLSAX2Handler.h.
typedef XERCES_CPP_NAMESPACE::SAXParseException DDLSAX2Handler::SAXParseException |
Definition at line 41 of file DDLSAX2Handler.h.
DDLSAX2Handler::DDLSAX2Handler | ( | void | ) |
Definition at line 19 of file DDLSAX2Handler.cc.
DDLSAX2Handler::~DDLSAX2Handler | ( | void | ) |
Definition at line 28 of file DDLSAX2Handler.cc.
|
virtual |
Reimplemented in DDLSAX2FileHandler.
Definition at line 54 of file DDLSAX2Handler.cc.
References characterCount_.
|
virtual |
Reimplemented in DDLSAX2FileHandler.
Definition at line 61 of file DDLSAX2Handler.cc.
|
virtual |
Definition at line 83 of file DDLSAX2Handler.cc.
References gather_cfg::cout, getAttrCount(), getCharacterCount(), getElementCount(), and getSpaceCount().
|
virtual |
Reimplemented in DDLSAX2FileHandler, and DDLSAX2ExpressionHandler.
Definition at line 46 of file DDLSAX2Handler.cc.
|
virtual |
Definition at line 98 of file DDLSAX2Handler.cc.
References sawErrors_.
Referenced by argparse.ArgumentParser::_get_option_tuples(), python.rootplot.argparse.ArgumentParser::_get_option_tuples(), argparse.ArgumentParser::_parse_known_args(), python.rootplot.argparse.ArgumentParser::_parse_known_args(), argparse.ArgumentParser::_parse_optional(), python.rootplot.argparse.ArgumentParser::_parse_optional(), argparse.ArgumentParser::_read_args_from_files(), python.rootplot.argparse.ArgumentParser::_read_args_from_files(), argparse.ArgumentParser::add_subparsers(), python.rootplot.argparse.ArgumentParser::add_subparsers(), argparse.ArgumentParser::parse_args(), python.rootplot.argparse.ArgumentParser::parse_args(), argparse.ArgumentParser::parse_known_args(), and python.rootplot.argparse.ArgumentParser::parse_known_args().
|
virtual |
Definition at line 109 of file DDLSAX2Handler.cc.
References edm::hlt::Exception, and sawErrors_.
|
inline |
Get the count of attributes processed so far.
Definition at line 60 of file DDLSAX2Handler.h.
References attrCount_.
Referenced by dumpStats().
|
inline |
Get the count of characters processed so far.
Definition at line 65 of file DDLSAX2Handler.h.
References characterCount_.
Referenced by dumpStats().
|
inline |
Get the count of elements processed so far.
Definition at line 55 of file DDLSAX2Handler.h.
References elementCount_.
Referenced by dumpStats().
|
inline |
Did the XML parser see any errors?
Definition at line 70 of file DDLSAX2Handler.h.
References sawErrors_.
|
inline |
Get the count of spaces processed so far.
Definition at line 75 of file DDLSAX2Handler.h.
References spaceCount_.
Referenced by dumpStats().
|
virtual |
|
virtual |
Definition at line 74 of file DDLSAX2Handler.cc.
References attrCount_, characterCount_, elementCount_, and spaceCount_.
|
virtual |
Definition at line 141 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 135 of file DDLSAX2Handler.cc.
References userNS_.
Referenced by XMLIdealGeometryESSource::produce(), and XMLIdealGeometryESProducer::produce().
|
virtual |
Reimplemented in DDLSAX2FileHandler, DDLSAX2ConfigHandler, and DDLSAX2ExpressionHandler.
Definition at line 36 of file DDLSAX2Handler.cc.
References attrCount_, and elementCount_.
|
virtual |
Definition at line 125 of file DDLSAX2Handler.cc.
|
protected |
Definition at line 117 of file DDLSAX2Handler.h.
Referenced by getAttrCount(), resetDocument(), DDLSAX2ExpressionHandler::startElement(), DDLSAX2ConfigHandler::startElement(), and startElement().
|
protected |
Definition at line 118 of file DDLSAX2Handler.h.
Referenced by characters(), getCharacterCount(), and resetDocument().
|
protected |
Definition at line 119 of file DDLSAX2Handler.h.
Referenced by getElementCount(), resetDocument(), DDLSAX2ExpressionHandler::startElement(), DDLSAX2ConfigHandler::startElement(), and startElement().
|
protected |
Definition at line 123 of file DDLSAX2Handler.h.
Referenced by DDLSAX2FileHandler::endElement(), setNameSpace(), DDLSAX2ExpressionHandler::startElement(), and DDLSAX2FileHandler::startElement().
|
protected |
Definition at line 121 of file DDLSAX2Handler.h.
Referenced by error(), fatalError(), and getSawErrors().
|
protected |
Definition at line 120 of file DDLSAX2Handler.h.
Referenced by getSpaceCount(), ignorableWhitespace(), and resetDocument().
|
protected |
Definition at line 122 of file DDLSAX2Handler.h.
Referenced by DDLSAX2FileHandler::endElement(), and setUserNS().