DDLSAX2FileHandler is the SAX2 Handler for XML files found in the configuration file. More...
#include <DDLSAX2FileHandler.h>
Public Member Functions | |
void | characters (const XMLCh *const chars, const XMLSize_t length) override |
void | comment (const XMLCh *const chars, const XMLSize_t length) override |
DDLSAX2FileHandler (DDCompactView &cpv) | |
void | endElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname) override |
void | init () |
void | startElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const Attributes &attrs) override |
~DDLSAX2FileHandler () | |
Public Member Functions inherited from DDLSAX2Handler | |
DDLSAX2Handler () | |
virtual void | dumpStats (const std::string &fname) |
virtual void | error (const SAXParseException &exception) override |
virtual 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... | |
virtual void | ignorableWhitespace (const XMLCh *const chars, const XMLSize_t length) override |
virtual void | resetDocument () override |
virtual void | setNameSpace (const std::string &nms) |
virtual void | setUserNS (bool userns) |
virtual void | warning (const SAXParseException &exception) override |
~DDLSAX2Handler () | |
Private Member Functions | |
void | createDDConstants () const |
creates all DDConstant from the evaluator which has been already 'filled' in the first scan of the documents More... | |
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_ |
Additional Inherited Members | |
Public Types inherited from DDLSAX2Handler | |
typedef XERCES_CPP_NAMESPACE::Attributes | Attributes |
typedef XERCES_CPP_NAMESPACE::SAXParseException | 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 34 of file DDLSAX2FileHandler.h.
DDLSAX2FileHandler::DDLSAX2FileHandler | ( | DDCompactView & | cpv | ) |
DDLSAX2FileHandler::~DDLSAX2FileHandler | ( | void | ) |
Definition at line 27 of file DDLSAX2FileHandler.cc.
|
overridevirtual |
Reimplemented from DDLSAX2Handler.
Definition at line 98 of file DDLSAX2FileHandler.cc.
References mps_fire::i, DDI::Singleton< I >::instance(), alignCSCRings::s, and AlCaHLTBitMon_QueryRunRegistry::string.
|
overridevirtual |
|
private |
creates all DDConstant from the evaluator which has been already 'filled' in the first scan of the documents
Definition at line 120 of file DDLSAX2FileHandler.cc.
References DDConstant::createConstantsFromEvaluator(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by init().
|
overridevirtual |
Reimplemented from DDLSAX2Handler.
Definition at line 66 of file DDLSAX2FileHandler.cc.
References cpv_, cms::xerces::cStr(), DDI::Singleton< I >::instance(), names_, DDLSAX2Handler::nmspace_, DDCurrentNamespace::ns(), parent(), AlCaHLTBitMon_QueryRunRegistry::string, and DDLSAX2Handler::userNS_.
void DDLSAX2FileHandler::init | ( | void | ) |
Definition at line 20 of file DDLSAX2FileHandler.cc.
References createDDConstants(), names_, and namesMap_.
Referenced by DDLSAX2FileHandler().
|
privatevirtual |
Definition at line 126 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(), 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().
|
privatevirtual |
Definition at line 136 of file DDLSAX2FileHandler.cc.
References names_, and namesMap_.
|
overridevirtual |
Reimplemented from DDLSAX2Handler.
Definition at line 31 of file DDLSAX2FileHandler.cc.
References cpv_, cms::xerces::cStr(), mps_fire::i, DDI::Singleton< I >::instance(), names_, namesMap_, DDLSAX2Handler::nmspace_, 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().