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 unsigned int length) |
void | comment (const XMLCh *const chars, const unsigned int length) |
DDLSAX2FileHandler (DDCompactView &cpv) | |
void | dumpElementTypeCounter () |
This dumps some statistics on elements encountered in the file. More... | |
void | endElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname) |
void | init () |
virtual const std::string & | parent () const |
virtual const std::string & | self () const |
void | startElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const Attributes &attrs) |
~DDLSAX2FileHandler () | |
Public Member Functions inherited from DDLSAX2Handler | |
DDLSAX2Handler () | |
virtual void | dumpStats (const std::string &fname) |
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 | warning (const SAXParseException &exception) |
~DDLSAX2Handler () | |
Protected Member Functions | |
void | createDDConstants () const |
creates all DDConstant from the evaluator which has been already 'filled' in the first scan of the documents More... | |
Protected Attributes | |
DDCompactView & | cpv_ |
std::map< std::string, int > | elementTypeCounter_ |
std::vector< size_t > | names_ |
std::vector< std::string > | namesMap_ |
DDLElementRegistry | xmlelems_ |
Protected Attributes inherited from DDLSAX2Handler | |
unsigned int | attrCount_ |
unsigned int | characterCount_ |
unsigned int | elementCount_ |
std::string | nmspace_ |
bool | sawErrors_ |
unsigned int | spaceCount_ |
bool | userNS_ |
Additional Inherited Members | |
Public Types inherited from DDLSAX2Handler | |
typedef XERCES_CPP_NAMESPACE::Attributes | Attributes |
typedef XERCES_CPP_NAMESPACE::SAXParseException | SAXParseException |
DDLSAX2FileHandler is the SAX2 Handler for XML files found in the configuration file.
begin: Tue Oct 23 2001 email: case@ ucdh ep.uc davi s.edu
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 40 of file DDLSAX2FileHandler.h.
DDLSAX2FileHandler::DDLSAX2FileHandler | ( | DDCompactView & | cpv | ) |
DDLSAX2FileHandler::~DDLSAX2FileHandler | ( | void | ) |
Definition at line 41 of file DDLSAX2FileHandler.cc.
|
virtual |
Reimplemented from DDLSAX2Handler.
Definition at line 132 of file DDLSAX2FileHandler.cc.
References DDXMLElement::appendText(), DCOUT_V, DDXMLElement::gotText(), i, DDI::Singleton< I >::instance(), DDXMLElement::loadText(), alignCSCRings::s, and AlCaHLTBitMon_QueryRunRegistry::string.
|
virtual |
Reimplemented from DDLSAX2Handler.
Definition at line 158 of file DDLSAX2FileHandler.cc.
|
protected |
creates all DDConstant from the evaluator which has been already 'filled' in the first scan of the documents
Definition at line 169 of file DDLSAX2FileHandler.cc.
References DDConstant::createConstantsFromEvaluator().
Referenced by init().
void DDLSAX2FileHandler::dumpElementTypeCounter | ( | void | ) |
This dumps some statistics on elements encountered in the file.
Definition at line 165 of file DDLSAX2FileHandler.cc.
Referenced by DDLParser::parse().
|
virtual |
Reimplemented from DDLSAX2Handler.
Definition at line 94 of file DDLSAX2FileHandler.cc.
References cpv_, DCOUT_V, DDI::Singleton< I >::instance(), names_, DDLSAX2Handler::nmspace_, DDCurrentNamespace::ns(), parent(), DDXMLElement::processElement(), DDXMLElement::setParent(), DDXMLElement::setSelf(), AlCaHLTBitMon_QueryRunRegistry::string, and DDLSAX2Handler::userNS_.
void DDLSAX2FileHandler::init | ( | void | ) |
Definition at line 34 of file DDLSAX2FileHandler.cc.
References createDDConstants(), names_, and namesMap_.
Referenced by DDLSAX2FileHandler().
|
virtual |
Definition at line 175 of file DDLSAX2FileHandler.cc.
References names_, and namesMap_.
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().
|
virtual |
Definition at line 185 of file DDLSAX2FileHandler.cc.
References names_, and namesMap_.
|
virtual |
Reimplemented from DDLSAX2Handler.
Definition at line 48 of file DDLSAX2FileHandler.cc.
References cpv_, DCOUT_V, elementTypeCounter_, i, DDI::Singleton< I >::instance(), DDXMLElement::loadAttributes(), DDXMLElement::loadText(), names_, namesMap_, DDLSAX2Handler::nmspace_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
protected |
Definition at line 85 of file DDLSAX2FileHandler.h.
Referenced by endElement(), and startElement().
|
protected |
Definition at line 82 of file DDLSAX2FileHandler.h.
Referenced by DDLSAX2ExpressionHandler::startElement(), and startElement().
|
protected |
Definition at line 84 of file DDLSAX2FileHandler.h.
Referenced by endElement(), init(), parent(), self(), and startElement().
|
protected |
Definition at line 83 of file DDLSAX2FileHandler.h.
Referenced by init(), parent(), self(), and startElement().
|
protected |
Definition at line 86 of file DDLSAX2FileHandler.h.