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 | ||
) |
|
override |
Definition at line 26 of file DDLSAX2FileHandler.cc.
|
override |
Definition at line 97 of file DDLSAX2FileHandler.cc.
References DDLElementRegistry::getElement(), mps_fire::i, registry_, alignCSCRings::s, and AlCaHLTBitMon_QueryRunRegistry::string.
|
override |
Definition at line 114 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 119 of file DDLSAX2FileHandler.cc.
References DDConstant::createConstantsFromEvaluator(), DDLElementRegistry::evaluator(), registry_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by DDLParser::parse(), and DDLParser::parseOneFile().
|
override |
Definition at line 65 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 20 of file DDLSAX2FileHandler.cc.
References names_, and namesMap_.
Referenced by DDLSAX2FileHandler().
|
privatevirtual |
Definition at line 125 of file DDLSAX2FileHandler.cc.
References names_, namesMap_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by Vispa.Gui.ConnectableWidget.ConnectableWidget::addMenuEntry(), Vispa.Views.LineDecayView.LineDecayContainer::applyFilter(), Vispa.Views.BoxDecayView.BoxDecayContainer::arrangeUsingRelations(), Vispa.Views.BoxDecayView.BoxDecayContainer::autolayoutAlgorithm(), Vispa.Gui.ZoomableScrollableWidgetOwner.ZoomableScrollableWidgetOwner::autosizeScrollArea(), Vispa.Views.BoxDecayView.BoxDecayContainer::autosizeScrollArea(), Vispa.Gui.PortWidget.PortWidget::connectionPoint(), Vispa.Main.StartupScreen.StartupScreen::createDescriptionWidget(), Vispa.Views.BoxDecayView.BoxDecayContainer::dataAccessor(), Vispa.Views.LineDecayView.LineDecayContainer::dataAccessor(), Vispa.Views.LineDecayView.DecayLine::dataAccessor(), Vispa.Views.LineDecayView.LineDecayContainer::delete(), Vispa.Views.LineDecayView.DecayNode::delete(), Vispa.Views.LineDecayView.DecayLine::delete(), Vispa.Gui.VispaWidget.VispaWidget::delete(), Vispa.Gui.VispaWidget.VispaWidget::dragWidget(), endElement(), Vispa.Share.ImageExporter.ImageExporter::exportImageDialog(), Vispa.Views.LineDecayView.DecayLine::extendedSize(), Vispa.Gui.VispaWidget.VispaWidget::keyPressEvent(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.ConnectableWidget.ConnectableWidget::leaveEvent(), Vispa.Gui.PortWidget.PortWidget::moduleParent(), Vispa.Gui.WidgetContainer.WidgetContainer::mouseDoubleClickEvent(), Vispa.Gui.VispaWidget.VispaWidget::mouseDoubleClickEvent(), Vispa.Gui.PortConnection.PointToPointConnection::mousePressEvent(), Vispa.Gui.VispaWidget.VispaWidget::mousePressEvent(), Vispa.Views.LineDecayView.ParticleWidget::mousePressEvent(), Vispa.Views.LineDecayView.DecayNode::move(), Vispa.Views.LineDecayView.LineDecayContainer::noDecorationsMode(), Vispa.Views.LineDecayView.LineDecayContainer::operationId(), Vispa.Views.LineDecayView.DecayLine::paint(), Vispa.Gui.VispaWidget.VispaWidget::paintEvent(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), Vispa.Views.LineDecayView.DecayLine::qtLineStyle(), registry(), Vispa.Views.WidgetView.WidgetView::restoreSelection(), Vispa.Views.WidgetView.WidgetView::select(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Views.LineDecayView.LineDecayContainer::sizeHint(), Vispa.Views.LineDecayView.LineDecayContainer::tabController(), Vispa.Views.BoxDecayView.BoxDecayContainer::toggleCollapsed(), Vispa.Views.LineDecayView.DecayNode::unite(), Vispa.Views.PropertyView.PropertyView::valueChanged(), Vispa.Views.BoxDecayView.BoxDecayContainer::widgetByObject(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::widgetDoubleClicked(), and Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::widgetDragged().
|
inlineprotected |
Definition at line 59 of file DDLSAX2FileHandler.h.
References parent(), registry_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by DDLSAX2ExpressionHandler::startElement().
|
privatevirtual |
Definition at line 135 of file DDLSAX2FileHandler.cc.
References names_, and namesMap_.
|
override |
Definition at line 30 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 68 of file DDLSAX2FileHandler.h.
Referenced by endElement(), and startElement().
|
private |
Definition at line 67 of file DDLSAX2FileHandler.h.
Referenced by endElement(), init(), parent(), self(), and startElement().
|
private |
Definition at line 66 of file DDLSAX2FileHandler.h.
Referenced by init(), parent(), self(), and startElement().
|
private |
Definition at line 69 of file DDLSAX2FileHandler.h.
Referenced by characters(), createDDConstants(), endElement(), registry(), and startElement().