DDLSAX2FileHandler is the SAX2 Handler for XML files found in the configuration file. More...
#include <DDLSAX2FileHandler.h>
Public Member Functions | |
void | characters (const XMLCh *chars, XMLSize_t length) override |
void | comment (const XMLCh *chars, XMLSize_t length) override |
void | createDDConstants () const |
creates all DDConstant from the evaluator which has been already 'filled' in the first scan of the documents More... | |
DDLSAX2FileHandler (DDCompactView &cpv, DDLElementRegistry &) | |
void | endElement (const XMLCh *uri, const XMLCh *localname, const XMLCh *qname) override |
void | init () |
void | startElement (const XMLCh *uri, const XMLCh *localname, const XMLCh *qname, const Attributes &attrs) override |
~DDLSAX2FileHandler () override | |
Public Member Functions inherited from DDLSAX2Handler | |
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 Member Functions | |
DDLElementRegistry & | registry () |
Private Member Functions | |
virtual const std::string & | parent () const |
virtual const std::string & | self () const |
Private Attributes | |
DDCompactView & | cpv_ |
std::vector< size_t > | names_ |
std::vector< std::string > | namesMap_ |
DDLElementRegistry & | registry_ |
Additional Inherited Members | |
Public Types inherited from DDLSAX2Handler | |
using | Attributes = XERCES_CPP_NAMESPACE::Attributes |
using | SAXParseException = XERCES_CPP_NAMESPACE::SAXParseException |
Protected Attributes inherited from DDLSAX2Handler | |
XMLSize_t | attrCount_ |
XMLSize_t | characterCount_ |
XMLSize_t | elementCount_ |
std::string | nmspace_ |
bool | sawErrors_ |
XMLSize_t | spaceCount_ |
bool | userNS_ |
DDLSAX2FileHandler is the SAX2 Handler for XML files found in the configuration file.
begin: Tue Oct 23 2001
DDLSAX2FileHandler has the same structure as the DDLSAX2ConfigHandler as they both inherit from DDLSAX2Handler which inherits from Xerces C++ DefaultHandler. SAX2 is event driven. So, when the start of an element is encountered in the XML, then a call is made to the handler's startElement. The same for endElement.
The design of DDXMLElement allows for processing whichever type of Element the XML Parser encounters.
Definition at line 35 of file DDLSAX2FileHandler.h.
DDLSAX2FileHandler::DDLSAX2FileHandler | ( | DDCompactView & | cpv, |
DDLElementRegistry & | reg | ||
) |
Definition at line 13 of file DDLSAX2FileHandler.cc.
|
override |
Definition at line 22 of file DDLSAX2FileHandler.cc.
|
override |
Definition at line 84 of file DDLSAX2FileHandler.cc.
References DDLElementRegistry::getElement(), mps_fire::i, registry_, alignCSCRings::s, and AlCaHLTBitMon_QueryRunRegistry::string.
|
override |
Definition at line 97 of file DDLSAX2FileHandler.cc.
void DDLSAX2FileHandler::createDDConstants | ( | void | ) | const |
creates all DDConstant from the evaluator which has been already 'filled' in the first scan of the documents
Definition at line 99 of file DDLSAX2FileHandler.cc.
References DDConstant::createConstantsFromEvaluator(), DDLElementRegistry::evaluator(), and registry_.
Referenced by DDLParser::parse(), and DDLParser::parseOneFile().
|
override |
Definition at line 56 of file DDLSAX2FileHandler.cc.
References cpv_, cms::xerces::cStr(), DDLElementRegistry::getElement(), names_, DDLSAX2Handler::nmspace_, DDCurrentNamespace::ns(), parent(), registry_, AlCaHLTBitMon_QueryRunRegistry::string, and DDLSAX2Handler::userNS_.
void DDLSAX2FileHandler::init | ( | void | ) |
Definition at line 17 of file DDLSAX2FileHandler.cc.
References names_, and namesMap_.
|
privatevirtual |
Definition at line 103 of file DDLSAX2FileHandler.cc.
References names_, and namesMap_.
Referenced by endElement().
|
inlineprotected |
Definition at line 55 of file DDLSAX2FileHandler.h.
References registry_.
Referenced by DDLSAX2ExpressionHandler::startElement().
|
privatevirtual |
Definition at line 110 of file DDLSAX2FileHandler.cc.
References names_, and namesMap_.
Referenced by crabFunctions.CrabTask::update().
|
override |
Definition at line 24 of file DDLSAX2FileHandler.cc.
References cpv_, cms::xerces::cStr(), DDLElementRegistry::getElement(), mps_fire::i, names_, namesMap_, DDLSAX2Handler::nmspace_, registry_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 64 of file DDLSAX2FileHandler.h.
Referenced by endElement(), and startElement().
|
private |
Definition at line 63 of file DDLSAX2FileHandler.h.
Referenced by endElement(), init(), parent(), self(), and startElement().
|
private |
Definition at line 62 of file DDLSAX2FileHandler.h.
Referenced by init(), parent(), self(), and startElement().
|
private |
Definition at line 65 of file DDLSAX2FileHandler.h.
Referenced by characters(), createDDConstants(), endElement(), registry(), and startElement().