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 42 of file DDLSAX2FileHandler.cc.
|
virtual |
Reimplemented from DDLSAX2Handler.
Definition at line 133 of file DDLSAX2FileHandler.cc.
References DDXMLElement::appendText(), DCOUT_V, DDXMLElement::gotText(), i, DDI::Singleton< I >::instance(), DDXMLElement::loadText(), and asciidump::s.
|
virtual |
Reimplemented from DDLSAX2Handler.
Definition at line 159 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 170 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 166 of file DDLSAX2FileHandler.cc.
Referenced by DDLParser::parse().
|
virtual |
Reimplemented from DDLSAX2Handler.
Definition at line 95 of file DDLSAX2FileHandler.cc.
References cpv_, DCOUT_V, DDI::Singleton< I >::instance(), names_, DDLSAX2Handler::nmspace_, DDCurrentNamespace::ns(), parent(), DDXMLElement::processElement(), DDXMLElement::setParent(), DDXMLElement::setSelf(), and DDLSAX2Handler::userNS_.
void DDLSAX2FileHandler::init | ( | void | ) |
Definition at line 35 of file DDLSAX2FileHandler.cc.
References createDDConstants(), names_, and namesMap_.
Referenced by DDLSAX2FileHandler().
|
virtual |
Definition at line 176 of file DDLSAX2FileHandler.cc.
References names_, and namesMap_.
Referenced by python.Vispa.Gui.ConnectableWidget.ConnectableWidget::addMenuEntry(), python.Vispa.Views.LineDecayView.LineDecayContainer::applyFilter(), python.Vispa.Views.BoxDecayView.BoxDecayContainer::arrangeUsingRelations(), python.Vispa.Views.BoxDecayView.BoxDecayContainer::autolayoutAlgorithm(), python.Vispa.Gui.ZoomableScrollableWidgetOwner.ZoomableScrollableWidgetOwner::autosizeScrollArea(), python.Vispa.Views.BoxDecayView.BoxDecayContainer::autosizeScrollArea(), python.Vispa.Gui.PortWidget.PortWidget::connectionPoint(), python.Vispa.Main.StartupScreen.StartupScreen::createDescriptionWidget(), python.Vispa.Views.BoxDecayView.BoxDecayContainer::dataAccessor(), python.Vispa.Views.LineDecayView.LineDecayContainer::dataAccessor(), python.Vispa.Views.LineDecayView.DecayLine::dataAccessor(), python.Vispa.Views.LineDecayView.LineDecayContainer::delete(), python.Vispa.Views.LineDecayView.DecayNode::delete(), python.Vispa.Views.LineDecayView.DecayLine::delete(), python.Vispa.Gui.VispaWidget.VispaWidget::delete(), python.Vispa.Gui.VispaWidget.VispaWidget::dragWidget(), endElement(), python.Vispa.Share.ImageExporter.ImageExporter::exportImageDialog(), python.Vispa.Views.LineDecayView.DecayLine::extendedSize(), python.Vispa.Gui.VispaWidget.VispaWidget::keyPressEvent(), python.Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), python.Vispa.Gui.ConnectableWidget.ConnectableWidget::leaveEvent(), python.Vispa.Gui.PortWidget.PortWidget::moduleParent(), python.Vispa.Gui.WidgetContainer.WidgetContainer::mouseDoubleClickEvent(), python.Vispa.Gui.VispaWidget.VispaWidget::mouseDoubleClickEvent(), python.Vispa.Gui.PortConnection.PointToPointConnection::mousePressEvent(), python.Vispa.Gui.VispaWidget.VispaWidget::mousePressEvent(), python.Vispa.Views.LineDecayView.ParticleWidget::mousePressEvent(), python.Vispa.Views.LineDecayView.DecayNode::move(), python.Vispa.Views.LineDecayView.LineDecayContainer::noDecorationsMode(), python.Vispa.Views.LineDecayView.LineDecayContainer::operationId(), python.Vispa.Views.LineDecayView.DecayLine::paint(), python.Vispa.Gui.VispaWidget.VispaWidget::paintEvent(), python.Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), python.Vispa.Views.LineDecayView.DecayLine::qtLineStyle(), python.Vispa.Views.WidgetView.WidgetView::restoreSelection(), python.Vispa.Views.WidgetView.WidgetView::select(), python.Vispa.Gui.PortConnection.PointToPointConnection::select(), python.Vispa.Gui.VispaWidget.VispaWidget::select(), python.Vispa.Views.LineDecayView.LineDecayContainer::select(), python.Vispa.Views.LineDecayView.LineDecayContainer::sizeHint(), python.Vispa.Views.LineDecayView.LineDecayContainer::tabController(), python.Vispa.Views.BoxDecayView.BoxDecayContainer::toggleCollapsed(), python.Vispa.Views.LineDecayView.DecayNode::unite(), python.Vispa.Views.PropertyView.PropertyView::valueChanged(), python.Vispa.Views.BoxDecayView.BoxDecayContainer::widgetByObject(), python.Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::widgetDoubleClicked(), and python.Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::widgetDragged().
|
virtual |
Definition at line 186 of file DDLSAX2FileHandler.cc.
References names_, and namesMap_.
|
virtual |
Reimplemented from DDLSAX2Handler.
Definition at line 49 of file DDLSAX2FileHandler.cc.
References cpv_, DCOUT_V, elementTypeCounter_, i, DDI::Singleton< I >::instance(), DDXMLElement::loadAttributes(), DDXMLElement::loadText(), names_, namesMap_, and DDLSAX2Handler::nmspace_.
|
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.