Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
DataHandler Class Referenceabstract

The XML-Handler for network loading. More...

#include <DataHandler.h>

Inheritance diagram for DataHandler:
[legend]
Collaboration diagram for DataHandler:
[legend]

Public Member Functions

void abortLoading ()
 abort loading
 DataHandler (const std::string &filename)
 Constructor.
void forceOverwriteElements ()
 force overwritte elements (used if we're reloading elements)
void forceRemainElements ()
 force remain elements (used if we're reloading elements)
bool isAbortLoading () const
 abort loading
bool isErrorCreatingElement () const
 get flag for mark if a element wasn't created
bool isForceOverwriteElements () const
 force overwritte elements (used if we're reloading elements)
bool isForceRemainElements () const
 force remain elements (used if we're reloading elements)
bool parse ()
 parse
void parseSumoBaseObject (CommonXMLStructure::SumoBaseObject *obj)
 parse SumoBaseObject (it's called recursivelly)
virtual bool postParserTasks ()=0
 run post parser tasks
 ~DataHandler ()
 Destructor.
build functions
virtual bool buildDataInterval (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &dataSetID, const double begin, const double end)=0
 Builds DataInterval.
virtual bool buildEdgeData (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &edgeID, const Parameterised::Map &parameters)=0
 Builds edgeData.
virtual bool buildEdgeRelationData (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &fromEdgeID, const std::string &toEdgeID, const Parameterised::Map &parameters)=0
 Builds edgeRelationData.
virtual bool buildTAZRelationData (const CommonXMLStructure::SumoBaseObject *sumoBaseObject, const std::string &fromTAZID, const std::string &toTAZID, const Parameterised::Map &parameters)=0
 Builds TAZRelationData.

Protected Member Functions

CommonXMLStructure::SumoBaseObjectgetEmbeddedRoute (const CommonXMLStructure::SumoBaseObject *sumoBaseObject) const
 get embedded route from children
void parseParameters (const SUMOSAXAttributes &attrs)
 parse generic parameters
bool writeError (const std::string &error)
 write error and enable error creating element
bool writeErrorInvalidLanes (const SumoXMLTag tag, const std::string &id)
 write error "invalid list of lanes"
bool writeErrorInvalidParent (const SumoXMLTag tag, const std::string &id, const std::vector< SumoXMLTag > parentTags, const std::string &parentID)
 write error "invalid parent element" giving ids of current and parent element
bool writeErrorInvalidParent (const SumoXMLTag tag, const std::vector< SumoXMLTag > parentTags)
 write error "invalid parent element" without giving IDs
bool writeErrorInvalidParent (const SumoXMLTag tag, const std::vector< SumoXMLTag > parentTags, const std::string &parentID)
 write error "invalid parent element" giving only the id of parent element
bool writeErrorInvalidPosition (const SumoXMLTag tag, const std::string &id)
 write error "invalid position"
bool writeWarningDuplicated (const SumoXMLTag tag, const std::string &id, const SumoXMLTag checkedTag)
 write warning duplicated element
void writeWarningOverwriting (const SumoXMLTag tag, const std::string &id)
 write warning overwritting element
check functions
void checkParsedParent (const SumoXMLTag currentTag, const std::vector< SumoXMLTag > &parentTags, bool &ok)
 check parsed parents
bool checkListOfVehicleTypes (const SumoXMLTag tag, const std::string &id, const std::vector< std::string > &vTypeIDs)
 check list of IDs
bool checkWithinDistribution (CommonXMLStructure::SumoBaseObject *obj)
 check if the given object is within a distribution (VType or routes)
bool checkVehicleParents (CommonXMLStructure::SumoBaseObject *obj)
 check vehicle parents
bool checkPersonPlanParents (CommonXMLStructure::SumoBaseObject *obj)
 check person plan parents
bool checkContainerPlanParents (CommonXMLStructure::SumoBaseObject *obj)
 check container plan parents
bool checkStopParents (CommonXMLStructure::SumoBaseObject *obj)
 check stop parents
bool checkNegative (const SumoXMLTag tag, const std::string &id, const SumoXMLAttr attribute, const int value, const bool canBeZero)
 check if the given int value is NOT negative
bool checkNegative (const SumoXMLTag tag, const std::string &id, const SumoXMLAttr attribute, const double value, const bool canBeZero)
 check if the given double value is NOT negative
bool checkNegative (const SumoXMLTag tag, const std::string &id, const SumoXMLAttr attribute, const SUMOTime value, const bool canBeZero)
 check if the given SUMOTime value is NOT negative
bool checkFileName (const SumoXMLTag tag, const std::string &id, const SumoXMLAttr attribute, const std::string &value)
 check if the given filename is valid
bool checkValidAdditionalID (const SumoXMLTag tag, const std::string &value)
 check if the given additional ID is valid
bool checkValidDetectorID (const SumoXMLTag tag, const std::string &value)
 check if the given detector ID is valid
bool checkValidDemandElementID (const SumoXMLTag tag, const std::string &value)
 check if the given demand elmement ID is valid

Protected Attributes

bool myAbortLoading = false
 abort loading
CommonXMLStructure myCommonXMLStructure
 common XML Structure
bool myErrorCreatingElement = false
 flag for mark if a element wasn't created
const std::string myFilename
 filename
bool myOverwriteElements = false
 overwrite elements
bool myRemainElements = false
 remain elements

Private Member Functions

void characters (const XMLCh *const chars, const XERCES3_SIZE_t length)
 The inherited method called when characters occurred.
void checkParent (const SumoXMLTag currentTag, const SumoXMLTag parentTag, bool &ok)
 check parents
 DataHandler ()=delete
 invalidate default onstructor
 DataHandler (const DataHandler &s)=delete
 invalidate copy constructor
void endElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname)
 The inherited method called when a tag is being closed.
void getAttributes (const SUMOSAXAttributes &attrs, const std::vector< SumoXMLAttr > avoidAttributes) const
 parse attributes as parameters
const std::string & getFileName () const
 returns the current file name
DataHandleroperator= (const DataHandler &s)=delete
 invalidate assignment operator
std::string parseParentTags (std::vector< SumoXMLTag > parentTags) const
 parse list of parent tags
void registerParent (const int tag, GenericSAXHandler *handler)
 Assigning a parent handler which is enabled when the specified tag is closed.
void setFileName (const std::string &name)
 Sets the current file name.
void startElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const XERCES_CPP_NAMESPACE::Attributes &attrs)
 The inherited method called when a new tag opens.
inherited from GenericSAXHandler
virtual void myStartElement (int element, const SUMOSAXAttributes &attrs)
 Called on the opening of a tag;.
virtual void myEndElement (int element)
 Called when a closing tag occurs.
parse data attributes

parse interval attributes

void parseInterval (const SUMOSAXAttributes &attrs)
void parseEdgeData (const SUMOSAXAttributes &attrs)
 parse edgeData attributes
void parseEdgeRelationData (const SUMOSAXAttributes &attrs)
 parse edgeRelationData attributes
void parseTAZRelationData (const SUMOSAXAttributes &attrs)
 parse TAZRelationData attributes
SAX ErrorHandler callbacks
void warning (const XERCES_CPP_NAMESPACE::SAXParseException &exception)
 Handler for XML-warnings.
void error (const XERCES_CPP_NAMESPACE::SAXParseException &exception)
 Handler for XML-errors.
void fatalError (const XERCES_CPP_NAMESPACE::SAXParseException &exception)
 Handler for XML-errors.
void setSection (const int element, const bool seen)
bool sectionFinished () const
std::pair< int, SUMOSAXAttributes * > retrieveNextSectionStart ()
void needsCharacterData (const bool value=true)
std::string buildErrorMessage (const XERCES_CPP_NAMESPACE::SAXParseException &exception)
 Builds an error message.
virtual void myCharacters (int element, const std::string &chars)
 Callback method for characters to implement by derived classes.
void callParentEnd (int element)
 signal endElement to the parent handler (special case for MSCalibrator)
XMLCh * convert (const std::string &name) const
 converts from c++-string into unicode
int convertTag (const std::string &tag) const
 Converts a tag from its string into its numerical representation.

attributes parsing

typedef std::vector< XMLCh * > AttrMap
AttrMap myPredefinedTags
std::vector< std::string > myPredefinedTagsMML
 the map from ids to their string representation

elements parsing

typedef std::map< std::string, int > TagMap
TagMap myTagMap
std::vector< std::string > myCharactersVector
 A list of character strings obtained so far to build the complete characters string at the end.
GenericSAXHandlermyParentHandler
 The handler to give control back to.
int myParentIndicator
 The tag indicating that control should be given back.
std::string myFileName
 The name of the currently parsed file.
std::string myExpectedRoot
 The root element to expect, empty string disables the check.
bool myCollectCharacterData = false
 whether the reader should collect character data
bool myRootSeen = false
 whether the reader has already seen the root element
int mySection = -1
 The tag indicating the current section to parse.
bool mySectionSeen = false
 whether the reader has already seen the begin of the section
bool mySectionEnded = false
 whether the reader has already seen the end of the section
bool mySectionOpen = false
 whether an element of the current section is open
std::pair< int, SUMOSAXAttributes * > myNextSectionStart

Detailed Description

The XML-Handler for network loading.

The SAX2-handler responsible for parsing networks and routes to load. This is an extension of the MSRouteHandler as routes and vehicles may also be loaded from network descriptions.

Definition at line 36 of file DataHandler.h.

Member Typedef Documentation

◆ AttrMap

typedef std::vector<XMLCh*> GenericSAXHandler::AttrMap
privateinherited

Definition at line 303 of file GenericSAXHandler.h.

◆ TagMap

typedef std::map<std::string, int> GenericSAXHandler::TagMap
privateinherited

Definition at line 317 of file GenericSAXHandler.h.

Constructor & Destructor Documentation

◆ DataHandler() [1/3]

DataHandler::DataHandler ( const std::string & filename)

Constructor.

Parameters
[in]filenameName of the parsed file

Definition at line 33 of file DataHandler.cpp.

References CommonHandler::CommonHandler(), and SUMOSAXHandler::SUMOSAXHandler().

Referenced by DataHandler(), GNEDataHandler::GNEDataHandler(), and operator=().

Here is the caller graph for this function:

◆ ~DataHandler()

DataHandler::~DataHandler ( )

Destructor.

Definition at line 39 of file DataHandler.cpp.

◆ DataHandler() [2/3]

DataHandler::DataHandler ( )
privatedelete

invalidate default onstructor

◆ DataHandler() [3/3]

DataHandler::DataHandler ( const DataHandler & s)
privatedelete

invalidate copy constructor

References DataHandler().

Member Function Documentation

◆ abortLoading()

void CommonHandler::abortLoading ( )
inherited

abort loading

Definition at line 54 of file CommonHandler.cpp.

References myAbortLoading.

◆ buildDataInterval()

virtual bool DataHandler::buildDataInterval ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & dataSetID,
const double begin,
const double end )
pure virtual

Builds DataInterval.

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]dataSetIDinterval's dataSet
[in]begininterval begin
[in]endinterval end

Implemented in GNEDataHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ buildEdgeData()

virtual bool DataHandler::buildEdgeData ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & edgeID,
const Parameterised::Map & parameters )
pure virtual

Builds edgeData.

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]edgeIDedge ID
[in]parametersparameters map

Implemented in GNEDataHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ buildEdgeRelationData()

virtual bool DataHandler::buildEdgeRelationData ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & fromEdgeID,
const std::string & toEdgeID,
const Parameterised::Map & parameters )
pure virtual

Builds edgeRelationData.

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]fromEdgeedge from
[in]toEdgeedge to
[in]parametersparameters map

Implemented in GNEDataHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ buildErrorMessage()

std::string GenericSAXHandler::buildErrorMessage ( const XERCES_CPP_NAMESPACE::SAXParseException & exception)
protectedinherited

Builds an error message.

The error message includes the file name and the line/column information as supported by the given SAXParseException

Parameters
[in]exceptionThe name of the currently processed file
Returns
A string describing the given exception

Definition at line 205 of file GenericSAXHandler.cpp.

References getFileName(), and TL.

Referenced by error(), fatalError(), and warning().

Here is the caller graph for this function:

◆ buildTAZRelationData()

virtual bool DataHandler::buildTAZRelationData ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject,
const std::string & fromTAZID,
const std::string & toTAZID,
const Parameterised::Map & parameters )
pure virtual

Builds TAZRelationData.

Parameters
[in]sumoBaseObjectsumo base object used for build
[in]fromTAZTAZ from
[in]toTAZTAZ to
[in]parametersparameters map

Implemented in GNEDataHandler.

Referenced by parseSumoBaseObject().

Here is the caller graph for this function:

◆ callParentEnd()

void GenericSAXHandler::callParentEnd ( int element)
protectedinherited

signal endElement to the parent handler (special case for MSCalibrator)

Definition at line 247 of file GenericSAXHandler.cpp.

References myParentHandler.

Referenced by MSCalibrator::myEndElement().

Here is the caller graph for this function:

◆ characters()

void GenericSAXHandler::characters ( const XMLCh *const chars,
const XERCES3_SIZE_t length )
inherited

The inherited method called when characters occurred.

The retrieved characters are converted into a string and appended into a private buffer. They are reported as soon as the element ends.

Todo

recheck/describe what happens with characters when a new element is opened

describe characters processing in the class' head

Definition at line 186 of file GenericSAXHandler.cpp.

References myCharactersVector, myCollectCharacterData, and StringUtils::transcode().

◆ checkContainerPlanParents()

bool CommonHandler::checkContainerPlanParents ( CommonXMLStructure::SumoBaseObject * obj)
protectedinherited

check container plan parents

Definition at line 229 of file CommonHandler.cpp.

References CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), SUMO_TAG_CONTAINER, and SUMO_TAG_CONTAINERFLOW.

Referenced by RouteHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ checkFileName()

bool CommonHandler::checkFileName ( const SumoXMLTag tag,
const std::string & id,
const SumoXMLAttr attribute,
const std::string & value )
protectedinherited

◆ checkListOfVehicleTypes()

bool CommonHandler::checkListOfVehicleTypes ( const SumoXMLTag tag,
const std::string & id,
const std::vector< std::string > & vTypeIDs )
protectedinherited

check list of IDs

Definition at line 158 of file CommonHandler.cpp.

References SUMOXMLDefinitions::isValidTypeID(), TLF, toString(), and writeError().

Referenced by GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), and GNEAdditionalHandler::buildVariableSpeedSign().

Here is the caller graph for this function:

◆ checkNegative() [1/3]

bool CommonHandler::checkNegative ( const SumoXMLTag tag,
const std::string & id,
const SumoXMLAttr attribute,
const double value,
const bool canBeZero )
protectedinherited

check if the given double value is NOT negative

Definition at line 280 of file CommonHandler.cpp.

References invalid_return< std::string >::value, TLF, toString(), and writeError().

◆ checkNegative() [2/3]

bool CommonHandler::checkNegative ( const SumoXMLTag tag,
const std::string & id,
const SumoXMLAttr attribute,
const int value,
const bool canBeZero )
protectedinherited

check if the given int value is NOT negative

Definition at line 262 of file CommonHandler.cpp.

References invalid_return< std::string >::value, TLF, toString(), and writeError().

Referenced by GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEMeanDataHandler::buildEdgeMeanData(), GNEAdditionalHandler::buildLaneCalibrator(), GNEMeanDataHandler::buildLaneMeanData(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNEAdditionalHandler::buildPOI(), GNEAdditionalHandler::buildPOIGeo(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildPolygon(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRerouterInterval(), GNERouteHandler::buildRoute(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNEAdditionalHandler::buildTractionSubstation(), GNEAdditionalHandler::buildTrainStop(), GNERouteHandler::buildTranship(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSignStep(), GNERouteHandler::buildWalk(), AdditionalHandler::parseDestProbRerouteAttributes(), AdditionalHandler::parseParkingAreaRerouteAttributes(), AdditionalHandler::parseRerouterAttributes(), RouteHandler::parseRoute(), RouteHandler::parseRouteEmbedded(), and AdditionalHandler::parseRouteProbRerouteAttributes().

Here is the caller graph for this function:

◆ checkNegative() [3/3]

bool CommonHandler::checkNegative ( const SumoXMLTag tag,
const std::string & id,
const SumoXMLAttr attribute,
const SUMOTime value,
const bool canBeZero )
protectedinherited

check if the given SUMOTime value is NOT negative

Definition at line 298 of file CommonHandler.cpp.

References invalid_return< std::string >::value, time2string(), TLF, toString(), and writeError().

◆ checkParent()

void DataHandler::checkParent ( const SumoXMLTag currentTag,
const SumoXMLTag parentTag,
bool & ok )
private

check parents

Definition at line 265 of file DataHandler.cpp.

References CommonHandler::myCommonXMLStructure, toString(), and CommonHandler::writeError().

◆ checkParsedParent()

◆ checkPersonPlanParents()

bool CommonHandler::checkPersonPlanParents ( CommonXMLStructure::SumoBaseObject * obj)
protectedinherited

check person plan parents

Definition at line 214 of file CommonHandler.cpp.

References CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), SUMO_TAG_PERSON, and SUMO_TAG_PERSONFLOW.

Referenced by RouteHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ checkStopParents()

bool CommonHandler::checkStopParents ( CommonXMLStructure::SumoBaseObject * obj)
protectedinherited

check stop parents

Definition at line 244 of file CommonHandler.cpp.

References CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), SUMO_TAG_CONTAINER, SUMO_TAG_CONTAINERFLOW, SUMO_TAG_FLOW, SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW, SUMO_TAG_ROUTE, SUMO_TAG_TRIP, and SUMO_TAG_VEHICLE.

Referenced by RouteHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ checkValidAdditionalID()

◆ checkValidDemandElementID()

◆ checkValidDetectorID()

bool CommonHandler::checkValidDetectorID ( const SumoXMLTag tag,
const std::string & value )
protectedinherited

check if the given detector ID is valid

Definition at line 338 of file CommonHandler.cpp.

References invalid_return< std::string >::value, SUMOXMLDefinitions::isValidDetectorID(), TLF, toString(), and writeError().

Referenced by GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), and GNEAdditionalHandler::buildSingleLaneDetectorE2().

Here is the caller graph for this function:

◆ checkVehicleParents()

bool CommonHandler::checkVehicleParents ( CommonXMLStructure::SumoBaseObject * obj)
protectedinherited

check vehicle parents

Definition at line 183 of file CommonHandler.cpp.

References getEmbeddedRoute(), CommonXMLStructure::SumoBaseObject::getStringAttribute(), CommonXMLStructure::SumoBaseObject::getTag(), CommonXMLStructure::SumoBaseObject::hasStringAttribute(), SUMO_ATTR_FROM, SUMO_ATTR_FROM_JUNCTION, SUMO_ATTR_FROM_TAZ, SUMO_ATTR_ID, SUMO_ATTR_ROUTE, SUMO_ATTR_TO, SUMO_ATTR_TO_JUNCTION, SUMO_ATTR_TO_TAZ, TLF, toString(), and writeError().

Referenced by RouteHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ checkWithinDistribution()

bool CommonHandler::checkWithinDistribution ( CommonXMLStructure::SumoBaseObject * obj)
protectedinherited

check if the given object is within a distribution (VType or routes)

Definition at line 169 of file CommonHandler.cpp.

References CommonXMLStructure::SumoBaseObject::getParentSumoBaseObject(), CommonXMLStructure::SumoBaseObject::getTag(), SUMO_TAG_ROUTE_DISTRIBUTION, and SUMO_TAG_VTYPE_DISTRIBUTION.

◆ convert()

XMLCh * GenericSAXHandler::convert ( const std::string & name) const
privateinherited

converts from c++-string into unicode

Todo
recheck encoding
Parameters
[in]nameThe string to convert
Returns
The string converted into a XMLCh-string

Definition at line 86 of file GenericSAXHandler.cpp.

Referenced by GenericSAXHandler().

Here is the caller graph for this function:

◆ convertTag()

int GenericSAXHandler::convertTag ( const std::string & tag) const
privateinherited

Converts a tag from its string into its numerical representation.

Returns the enum-representation stored for the given tag. If the tag is not known, SUMO_TAG_NOTHING is returned.

Parameters
[in]tagThe string to convert
Returns
The int-value that represents the string, SUMO_TAG_NOTHING if the named attribute is not known

Definition at line 195 of file GenericSAXHandler.cpp.

References myTagMap, and SUMO_TAG_NOTHING.

Referenced by endElement(), and startElement().

Here is the caller graph for this function:

◆ endElement()

void GenericSAXHandler::endElement ( const XMLCh *const uri,
const XMLCh *const localname,
const XMLCh *const qname )
inherited

The inherited method called when a tag is being closed.

This method calls the user-implemented methods myCharacters with the previously collected and converted characters.

Then, myEndElement is called, supplying it the qname converted to its enum- and string-representations.

Todo

recheck/describe encoding of the string-representation

do not generate and report the string-representation

Definition at line 134 of file GenericSAXHandler.cpp.

References convertTag(), myCharacters(), myCharactersVector, myEndElement(), myParentHandler, myParentIndicator, mySection, mySectionOpen, XMLSubSys::setHandler(), SUMO_TAG_INCLUDE, SUMO_TAG_NOTHING, and StringUtils::transcode().

◆ error()

void GenericSAXHandler::error ( const XERCES_CPP_NAMESPACE::SAXParseException & exception)
inherited

Handler for XML-errors.

The message is built using buildErrorMessage and thrown within a ProcessError.

Parameters
[in]exceptionThe occurred exception to process
Exceptions
ProcessErrorOn any call

Definition at line 224 of file GenericSAXHandler.cpp.

References buildErrorMessage().

Referenced by MSRouteHandler::addFlowTransportable(), MSRouteHandler::addTransportable(), MSRouteHandler::closeTransportable(), NIImporter_OpenDrive::geomFromSpiral(), and MSRouteHandler::interpretDepartPosLat().

Here is the caller graph for this function:

◆ fatalError()

void GenericSAXHandler::fatalError ( const XERCES_CPP_NAMESPACE::SAXParseException & exception)
inherited

Handler for XML-errors.

The message is built using buildErrorMessage and thrown within a ProcessError.

Exceptions
ProcessErrorOn any call
Parameters
[in]exceptionThe occurred exception to process

Definition at line 230 of file GenericSAXHandler.cpp.

References buildErrorMessage().

◆ forceOverwriteElements()

void CommonHandler::forceOverwriteElements ( )
inherited

force overwritte elements (used if we're reloading elements)

Definition at line 42 of file CommonHandler.cpp.

References myOverwriteElements.

Referenced by GNEApplicationWindow::onCmdReloadDataElements().

Here is the caller graph for this function:

◆ forceRemainElements()

void CommonHandler::forceRemainElements ( )
inherited

force remain elements (used if we're reloading elements)

Definition at line 48 of file CommonHandler.cpp.

References myRemainElements.

◆ getAttributes()

void DataHandler::getAttributes ( const SUMOSAXAttributes & attrs,
const std::vector< SumoXMLAttr > avoidAttributes ) const
private

parse attributes as parameters

Definition at line 249 of file DataHandler.cpp.

References SUMOSAXAttributes::getAttributeNames(), SUMOSAXAttributes::getStringSecure(), CommonHandler::myCommonXMLStructure, and toString().

Referenced by parseEdgeData(), parseEdgeRelationData(), and parseTAZRelationData().

Here is the caller graph for this function:

◆ getEmbeddedRoute()

CommonXMLStructure::SumoBaseObject * CommonHandler::getEmbeddedRoute ( const CommonXMLStructure::SumoBaseObject * sumoBaseObject) const
protectedinherited

get embedded route from children

Definition at line 115 of file CommonHandler.cpp.

References CommonXMLStructure::SumoBaseObject::getSumoBaseObjectChildren(), SUMO_ATTR_ID, and SUMO_TAG_ROUTE.

Referenced by checkVehicleParents(), and RouteHandler::parseSumoBaseObject().

Here is the caller graph for this function:

◆ getFileName()

◆ isAbortLoading()

bool CommonHandler::isAbortLoading ( ) const
inherited

abort loading

Definition at line 78 of file CommonHandler.cpp.

References myAbortLoading.

◆ isErrorCreatingElement()

bool CommonHandler::isErrorCreatingElement ( ) const
inherited

get flag for mark if a element wasn't created

Definition at line 60 of file CommonHandler.cpp.

References myErrorCreatingElement.

Referenced by GNEApplicationWindow::loadDataElements(), and GNEApplicationWindow::onCmdOpenDataElements().

Here is the caller graph for this function:

◆ isForceOverwriteElements()

bool CommonHandler::isForceOverwriteElements ( ) const
inherited

force overwritte elements (used if we're reloading elements)

Definition at line 66 of file CommonHandler.cpp.

References myOverwriteElements.

◆ isForceRemainElements()

bool CommonHandler::isForceRemainElements ( ) const
inherited

force remain elements (used if we're reloading elements)

Definition at line 72 of file CommonHandler.cpp.

References myRemainElements.

◆ myCharacters()

void GenericSAXHandler::myCharacters ( int element,
const std::string & chars )
protectedvirtualinherited

Callback method for characters to implement by derived classes.

Called by "endElement" (see there).

Parameters
[in]elementThe opened element, given as a int
[in]charsThe complete embedded character string @exceptions ProcessError These method may throw a ProcessError if something fails

Reimplemented in NIImporter_ITSUMO::Handler, and NIImporter_OpenDrive.

Definition at line 240 of file GenericSAXHandler.cpp.

Referenced by endElement().

Here is the caller graph for this function:

◆ myEndElement()

void DataHandler::myEndElement ( int element)
privatevirtual

Called when a closing tag occurs.

Parameters
[in]elementID of the currently opened element
Exceptions
ProcessErrorIf something fails
See also
GenericSAXHandler::myEndElement
Todo
Refactor/describe

Reimplemented from GenericSAXHandler.

Definition at line 138 of file DataHandler.cpp.

References CommonHandler::myCommonXMLStructure, parseSumoBaseObject(), and SUMO_TAG_INTERVAL.

◆ myStartElement()

void DataHandler::myStartElement ( int element,
const SUMOSAXAttributes & attrs )
privatevirtual

Called on the opening of a tag;.

Parameters
[in]elementID of the currently opened element
[in]attrsAttributes within the currently opened element
Exceptions
ProcessErrorIf something fails
See also
GenericSAXHandler::myStartElement
Todo
Refactor/describe

Reimplemented from GenericSAXHandler.

Definition at line 100 of file DataHandler.cpp.

References CommonHandler::myCommonXMLStructure, parseEdgeData(), parseEdgeRelationData(), parseInterval(), parseTAZRelationData(), SUMO_TAG_EDGE, SUMO_TAG_EDGEREL, SUMO_TAG_INTERVAL, SUMO_TAG_PARAM, SUMO_TAG_ROOTFILE, SUMO_TAG_TAZREL, TL, WRITE_WARNING, and CommonHandler::writeError().

◆ needsCharacterData()

void GenericSAXHandler::needsCharacterData ( const bool value = true)
inlineinherited

Definition at line 220 of file GenericSAXHandler.h.

References invalid_return< std::string >::value, and myCollectCharacterData.

Referenced by NIImporter_ITSUMO::loadNetwork(), NIImporter_OpenDrive::loadNetwork(), and NIImporter_OpenDrive::myCharacters().

Here is the caller graph for this function:

◆ operator=()

DataHandler & DataHandler::operator= ( const DataHandler & s)
privatedelete

invalidate assignment operator

References DataHandler().

◆ parse()

bool DataHandler::parse ( )

parse

Definition at line 43 of file DataHandler.cpp.

References GenericSAXHandler::getFileName(), and XMLSubSys::runParser().

Referenced by GNENet::computeNetwork(), GNEApplicationWindow::loadDataElements(), GNEApplicationWindow::onCmdOpenDataElements(), and GNEApplicationWindow::onCmdReloadDataElements().

Here is the caller graph for this function:

◆ parseEdgeData()

void DataHandler::parseEdgeData ( const SUMOSAXAttributes & attrs)
private

parse edgeData attributes

Definition at line 185 of file DataHandler.cpp.

References SUMOSAXAttributes::get(), getAttributes(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_ID, SUMO_TAG_EDGE, and SUMO_TAG_ERROR.

Referenced by myStartElement().

Here is the caller graph for this function:

◆ parseEdgeRelationData()

void DataHandler::parseEdgeRelationData ( const SUMOSAXAttributes & attrs)
private

parse edgeRelationData attributes

Definition at line 205 of file DataHandler.cpp.

References SUMOSAXAttributes::get(), getAttributes(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_FROM, SUMO_ATTR_TO, SUMO_TAG_EDGEREL, and SUMO_TAG_ERROR.

Referenced by myStartElement().

Here is the caller graph for this function:

◆ parseInterval()

void DataHandler::parseInterval ( const SUMOSAXAttributes & attrs)
private

Definition at line 163 of file DataHandler.cpp.

References SUMOSAXAttributes::get(), SUMOSAXAttributes::getSUMOTimeReporting(), CommonHandler::myCommonXMLStructure, STEPS2TIME, SUMO_ATTR_BEGIN, SUMO_ATTR_END, SUMO_ATTR_ID, SUMO_TAG_ERROR, and SUMO_TAG_INTERVAL.

Referenced by myStartElement().

Here is the caller graph for this function:

◆ parseParameters()

void CommonHandler::parseParameters ( const SUMOSAXAttributes & attrs)
protectedinherited

parse generic parameters

Definition at line 84 of file CommonHandler.cpp.

References SUMOSAXAttributes::get(), SUMOSAXAttributes::getString(), SUMOSAXAttributes::hasAttribute(), invalid_return< std::string >::value, SUMOXMLDefinitions::isValidParameterKey(), myCommonXMLStructure, SUMO_ATTR_KEY, SUMO_ATTR_VALUE, SUMO_TAG_ERROR, SUMO_TAG_PARAM, SUMO_TAG_ROOTFILE, TL, TLF, toString(), and writeError().

Referenced by AdditionalHandler::beginParseAttributes(), and RouteHandler::beginParseAttributes().

Here is the caller graph for this function:

◆ parseParentTags()

std::string CommonHandler::parseParentTags ( std::vector< SumoXMLTag > parentTags) const
privateinherited

parse list of parent tags

Definition at line 425 of file CommonHandler.cpp.

References TL, and toString().

Referenced by writeErrorInvalidParent(), writeErrorInvalidParent(), and writeErrorInvalidParent().

Here is the caller graph for this function:

◆ parseSumoBaseObject()

◆ parseTAZRelationData()

void DataHandler::parseTAZRelationData ( const SUMOSAXAttributes & attrs)
private

parse TAZRelationData attributes

Definition at line 227 of file DataHandler.cpp.

References SUMOSAXAttributes::get(), getAttributes(), CommonHandler::myCommonXMLStructure, SUMO_ATTR_FROM, SUMO_ATTR_TO, SUMO_TAG_ERROR, and SUMO_TAG_TAZREL.

Referenced by myStartElement().

Here is the caller graph for this function:

◆ postParserTasks()

virtual bool DataHandler::postParserTasks ( )
pure virtual

run post parser tasks

Implemented in GNEDataHandler.

◆ registerParent()

void GenericSAXHandler::registerParent ( const int tag,
GenericSAXHandler * handler )
inherited

Assigning a parent handler which is enabled when the specified tag is closed.

Definition at line 178 of file GenericSAXHandler.cpp.

References GenericSAXHandler(), myParentHandler, myParentIndicator, and XMLSubSys::setHandler().

Referenced by NLTriggerBuilder::parseAndBuildCalibrator(), NLTriggerBuilder::parseAndBuildLaneSpeedTrigger(), and NLTriggerBuilder::parseAndBuildRerouter().

Here is the caller graph for this function:

◆ retrieveNextSectionStart()

std::pair< int, SUMOSAXAttributes * > GenericSAXHandler::retrieveNextSectionStart ( )
inlineinherited

Definition at line 213 of file GenericSAXHandler.h.

References myNextSectionStart.

◆ sectionFinished()

bool GenericSAXHandler::sectionFinished ( ) const
inlineinherited

Definition at line 209 of file GenericSAXHandler.h.

References mySectionEnded.

◆ setFileName()

void GenericSAXHandler::setFileName ( const std::string & name)
inherited

Sets the current file name.

Parameters
[in]nameThe name of the currently processed file
Todo
Hmmm - this is as unsafe as having a direct access to the variable; recheck

Definition at line 74 of file GenericSAXHandler.cpp.

References myFileName.

Referenced by NIImporter_SUMO::_loadNetwork(), MSStateHandler::MSStateTimeHandler::getTime(), GUISettingsHandler::GUISettingsHandler(), NIImporter_OpenStreetMap::load(), NIImporter_Vissim::load(), NITypeLoader::load(), PCNetProjectionLoader::load(), loadNet(), ROLoader::loadNet(), NIImporter_ITSUMO::loadNetwork(), NIImporter_MATSim::loadNetwork(), NIImporter_OpenDrive::loadNetwork(), main(), and XMLSubSys::runParser().

Here is the caller graph for this function:

◆ setSection()

void GenericSAXHandler::setSection ( const int element,
const bool seen )
inlineinherited

Definition at line 202 of file GenericSAXHandler.h.

References mySection, mySectionEnded, mySectionOpen, and mySectionSeen.

◆ startElement()

void GenericSAXHandler::startElement ( const XMLCh *const uri,
const XMLCh *const localname,
const XMLCh *const qname,
const XERCES_CPP_NAMESPACE::Attributes & attrs )
inherited

The inherited method called when a new tag opens.

The method parses the supplied XMLCh*-qname using the internal name/enum-map to obtain the enum representation of the attribute name.

Then, "myStartElement" is called supplying the enumeration value, the string-representation of the name and the attributes.

Todo

recheck/describe encoding of the string-representation

do not generate and report the string-representation

Definition at line 99 of file GenericSAXHandler.cpp.

References convertTag(), FileHelpers::getConfigurationRelative(), getFileName(), SUMOSAXAttributesImpl_Xerces::getString(), FileHelpers::isAbsolute(), myCharactersVector, myExpectedRoot, myNextSectionStart, myPredefinedTags, myPredefinedTagsMML, myRootSeen, mySection, mySectionEnded, mySectionOpen, mySectionSeen, myStartElement(), XMLSubSys::runParser(), SUMO_ATTR_HREF, SUMO_TAG_INCLUDE, TL, StringUtils::transcode(), and WRITE_WARNINGF.

◆ warning()

void GenericSAXHandler::warning ( const XERCES_CPP_NAMESPACE::SAXParseException & exception)
inherited

Handler for XML-warnings.

The message is built using buildErrorMessage and reported to the warning-instance of the MsgHandler.

Parameters
[in]exceptionThe occurred exception to process

Definition at line 218 of file GenericSAXHandler.cpp.

References buildErrorMessage(), and WRITE_WARNING.

◆ writeError()

bool CommonHandler::writeError ( const std::string & error)
protectedinherited

write error and enable error creating element

Definition at line 375 of file CommonHandler.cpp.

References myErrorCreatingElement, and WRITE_ERROR.

Referenced by AdditionalHandler::beginParseAttributes(), MeanDataHandler::beginParseAttributes(), GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildChargingStation(), GNERouteHandler::buildContainer(), GNERouteHandler::buildContainerFlow(), GNERouteHandler::buildContainerStop(), GNEDataHandler::buildEdgeData(), GNEDataHandler::buildEdgeRelationData(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowEmbeddedRoute(), GNERouteHandler::buildFlowJunctions(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowTAZs(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNERouteHandler::buildPersonStop(), GNERouteHandler::buildPersonTrip(), GNEAdditionalHandler::buildPOIGeo(), GNEAdditionalHandler::buildRerouterInterval(), GNERouteHandler::buildRide(), GNERouteHandler::buildRoute(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNERouteHandler::buildStop(), GNEAdditionalHandler::buildTAZ(), GNEDataHandler::buildTAZRelationData(), GNERouteHandler::buildTranship(), GNERouteHandler::buildTransport(), GNERouteHandler::buildTrip(), GNERouteHandler::buildTripJunctions(), GNERouteHandler::buildTripTAZs(), GNEAdditionalHandler::buildVaporizer(), GNERouteHandler::buildVehicleEmbeddedRoute(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildWalk(), AdditionalHandler::checkCalibratorFlowParents(), AdditionalHandler::checkDetectPersons(), GNEMeanDataHandler::checkExcludeEmpty(), checkFileName(), checkListOfVehicleTypes(), checkNegative(), checkNegative(), checkNegative(), DataHandler::checkParent(), checkParsedParent(), MeanDataHandler::checkType(), checkValidAdditionalID(), checkValidDemandElementID(), checkValidDetectorID(), checkVehicleParents(), GNERouteHandler::checkViaAttribute(), GNERouteHandler::getDistributionElements(), DataHandler::myStartElement(), GNEMeanDataHandler::parseAttributes(), AdditionalHandler::parseCalibratorAttributes(), AdditionalHandler::parseCalibratorFlowAttributes(), AdditionalHandler::parseChargingStationAttributes(), AdditionalHandler::parseE2Attributes(), GNEAdditionalHandler::parseEdges(), GNEMeanDataHandler::parseEdges(), GNERouteHandler::parseEdges(), RouteHandler::parseFlow(), GNEAdditionalHandler::parseLanes(), RouteHandler::parseNestedCFM(), parseParameters(), AdditionalHandler::parsePOIAttributes(), RouteHandler::parseRouteEmbedded(), RouteHandler::parseStopParameters(), RouteHandler::parseTranship(), RouteHandler::parseTrip(), RouteHandler::parseWalk(), writeErrorInvalidLanes(), writeErrorInvalidParent(), writeErrorInvalidParent(), writeErrorInvalidParent(), and writeErrorInvalidPosition().

◆ writeErrorInvalidLanes()

bool CommonHandler::writeErrorInvalidLanes ( const SumoXMLTag tag,
const std::string & id )
protectedinherited

write error "invalid list of lanes"

Definition at line 389 of file CommonHandler.cpp.

References TLF, toString(), and writeError().

◆ writeErrorInvalidParent() [1/3]

bool CommonHandler::writeErrorInvalidParent ( const SumoXMLTag tag,
const std::string & id,
const std::vector< SumoXMLTag > parentTags,
const std::string & parentID )
protectedinherited

write error "invalid parent element" giving ids of current and parent element

Definition at line 395 of file CommonHandler.cpp.

References parseParentTags(), TLF, toString(), and writeError().

Referenced by GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibratorFlow(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildClosingLaneReroute(), GNEAdditionalHandler::buildClosingReroute(), GNEAdditionalHandler::buildContainerStop(), GNERouteHandler::buildContainerStop(), GNEAdditionalHandler::buildDestProbReroute(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEDataHandler::buildEdgeData(), GNEDataHandler::buildEdgeRelationData(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowEmbeddedRoute(), GNERouteHandler::buildFlowJunctions(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowTAZs(), GNEAdditionalHandler::buildLaneCalibrator(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingAreaReroute(), GNEAdditionalHandler::buildParkingSpace(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildPersonStop(), GNERouteHandler::buildPersonTrip(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildRerouterInterval(), GNERouteHandler::buildRide(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildRouteProbReroute(), GNERouteHandler::buildRouteRef(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNERouteHandler::buildStop(), GNEDataHandler::buildTAZRelationData(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNEAdditionalHandler::buildTrainStop(), GNERouteHandler::buildTranship(), GNERouteHandler::buildTransport(), GNERouteHandler::buildTrip(), GNERouteHandler::buildTripJunctions(), GNERouteHandler::buildTripTAZs(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSignStep(), GNERouteHandler::buildVehicleEmbeddedRoute(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildVTypeRef(), GNERouteHandler::buildWalk(), GNERouteHandler::parseEdge(), GNERouteHandler::parseJunction(), and GNERouteHandler::parseTAZ().

◆ writeErrorInvalidParent() [2/3]

bool CommonHandler::writeErrorInvalidParent ( const SumoXMLTag tag,
const std::vector< SumoXMLTag > parentTags )
protectedinherited

write error "invalid parent element" without giving IDs

Definition at line 415 of file CommonHandler.cpp.

References parseParentTags(), TLF, toString(), and writeError().

◆ writeErrorInvalidParent() [3/3]

bool CommonHandler::writeErrorInvalidParent ( const SumoXMLTag tag,
const std::vector< SumoXMLTag > parentTags,
const std::string & parentID )
protectedinherited

write error "invalid parent element" giving only the id of parent element

Definition at line 405 of file CommonHandler.cpp.

References parseParentTags(), TLF, toString(), and writeError().

◆ writeErrorInvalidPosition()

◆ writeWarningDuplicated()

bool CommonHandler::writeWarningDuplicated ( const SumoXMLTag tag,
const std::string & id,
const SumoXMLTag checkedTag )
protectedinherited

write warning duplicated element

Definition at line 368 of file CommonHandler.cpp.

References TLF, toString(), and WRITE_WARNING.

Referenced by GNEDataHandler::checkDuplicatedDataSet(), GNEMeanDataHandler::checkDuplicatedMeanDataElement(), GNEAdditionalHandler::checkElement(), and GNERouteHandler::checkElement().

Here is the caller graph for this function:

◆ writeWarningOverwriting()

void CommonHandler::writeWarningOverwriting ( const SumoXMLTag tag,
const std::string & id )
protectedinherited

write warning overwritting element

Definition at line 362 of file CommonHandler.cpp.

References TLF, toString(), and WRITE_WARNING.

Field Documentation

◆ myAbortLoading

bool CommonHandler::myAbortLoading = false
protectedinherited

◆ myCharactersVector

std::vector<std::string> GenericSAXHandler::myCharactersVector
privateinherited

A list of character strings obtained so far to build the complete characters string at the end.

Definition at line 324 of file GenericSAXHandler.h.

Referenced by characters(), endElement(), and startElement().

◆ myCollectCharacterData

bool GenericSAXHandler::myCollectCharacterData = false
privateinherited

whether the reader should collect character data

Definition at line 339 of file GenericSAXHandler.h.

Referenced by characters(), and needsCharacterData().

◆ myCommonXMLStructure

CommonXMLStructure CommonHandler::myCommonXMLStructure
protectedinherited

common XML Structure

Definition at line 74 of file CommonHandler.h.

Referenced by AdditionalHandler::beginParseAttributes(), MeanDataHandler::beginParseAttributes(), RouteHandler::beginParseAttributes(), AdditionalHandler::checkCalibratorFlowParents(), DataHandler::checkParent(), checkParsedParent(), AdditionalHandler::endParseAttributes(), MeanDataHandler::endParseAttributes(), RouteHandler::endParseAttributes(), DataHandler::getAttributes(), DataHandler::myEndElement(), DataHandler::myStartElement(), AdditionalHandler::parseAccessAttributes(), AdditionalHandler::parseBusStopAttributes(), AdditionalHandler::parseCalibratorAttributes(), AdditionalHandler::parseCalibratorFlowAttributes(), AdditionalHandler::parseChargingStationAttributes(), AdditionalHandler::parseClosingLaneRerouteAttributes(), AdditionalHandler::parseClosingRerouteAttributes(), RouteHandler::parseContainer(), RouteHandler::parseContainerFlow(), AdditionalHandler::parseContainerStopAttributes(), AdditionalHandler::parseDestProbRerouteAttributes(), AdditionalHandler::parseE1Attributes(), AdditionalHandler::parseE1InstantAttributes(), AdditionalHandler::parseE2Attributes(), AdditionalHandler::parseE3Attributes(), DataHandler::parseEdgeData(), MeanDataHandler::parseEdgeMeanData(), DataHandler::parseEdgeRelationData(), AdditionalHandler::parseEntryAttributes(), AdditionalHandler::parseExitAttributes(), RouteHandler::parseFlow(), DataHandler::parseInterval(), AdditionalHandler::parseJpsObstacleAttributes(), AdditionalHandler::parseJpsWalkableAreaAttributes(), MeanDataHandler::parseLaneMeanData(), AdditionalHandler::parseOverheadWire(), AdditionalHandler::parseOverheadWireClamp(), parseParameters(), AdditionalHandler::parseParkingAreaAttributes(), AdditionalHandler::parseParkingAreaRerouteAttributes(), AdditionalHandler::parseParkingSpaceAttributes(), RouteHandler::parsePerson(), RouteHandler::parsePersonFlow(), RouteHandler::parsePersonTrip(), AdditionalHandler::parsePOIAttributes(), AdditionalHandler::parsePolyAttributes(), AdditionalHandler::parseRerouterAttributes(), AdditionalHandler::parseRerouterIntervalAttributes(), RouteHandler::parseRide(), RouteHandler::parseRoute(), RouteHandler::parseRouteDistribution(), RouteHandler::parseRouteEmbedded(), AdditionalHandler::parseRouteProbeAttributes(), AdditionalHandler::parseRouteProbRerouteAttributes(), RouteHandler::parseRouteRef(), RouteHandler::parseStop(), AdditionalHandler::parseTAZAttributes(), DataHandler::parseTAZRelationData(), AdditionalHandler::parseTAZSinkAttributes(), AdditionalHandler::parseTAZSourceAttributes(), AdditionalHandler::parseTractionSubstation(), AdditionalHandler::parseTrainStopAttributes(), RouteHandler::parseTranship(), RouteHandler::parseTransport(), RouteHandler::parseTrip(), AdditionalHandler::parseVaporizerAttributes(), AdditionalHandler::parseVariableSpeedSignAttributes(), AdditionalHandler::parseVariableSpeedSignStepAttributes(), RouteHandler::parseVehicle(), RouteHandler::parseVType(), RouteHandler::parseVTypeDistribution(), RouteHandler::parseVTypeRef(), and RouteHandler::parseWalk().

◆ myErrorCreatingElement

bool CommonHandler::myErrorCreatingElement = false
protectedinherited

flag for mark if a element wasn't created

Definition at line 77 of file CommonHandler.h.

Referenced by isErrorCreatingElement(), and writeError().

◆ myExpectedRoot

std::string GenericSAXHandler::myExpectedRoot
privateinherited

The root element to expect, empty string disables the check.

Definition at line 336 of file GenericSAXHandler.h.

Referenced by GenericSAXHandler(), and startElement().

◆ myFileName

std::string GenericSAXHandler::myFileName
privateinherited

The name of the currently parsed file.

Definition at line 333 of file GenericSAXHandler.h.

Referenced by GenericSAXHandler(), getFileName(), and setFileName().

◆ myFilename

const std::string CommonHandler::myFilename
protectedinherited

filename

Definition at line 71 of file CommonHandler.h.

Referenced by GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildChargingStation(), GNERouteHandler::buildContainer(), GNERouteHandler::buildContainerFlow(), GNEAdditionalHandler::buildContainerStop(), GNEDataHandler::buildDataInterval(), GNEDataHandler::buildDataSet(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEMeanDataHandler::buildEdgeMeanData(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowEmbeddedRoute(), GNERouteHandler::buildFlowJunctions(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowTAZs(), GNEAdditionalHandler::buildJpsObstacle(), GNEAdditionalHandler::buildJpsWalkableArea(), GNEAdditionalHandler::buildLaneCalibrator(), GNEMeanDataHandler::buildLaneMeanData(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingArea(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNEAdditionalHandler::buildPOI(), GNEAdditionalHandler::buildPOIGeo(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildPolygon(), GNEAdditionalHandler::buildRerouter(), GNERouteHandler::buildRoute(), GNERouteHandler::buildRouteDistribution(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNEAdditionalHandler::buildTAZ(), GNEAdditionalHandler::buildTractionSubstation(), GNEAdditionalHandler::buildTrainStop(), GNERouteHandler::buildTrip(), GNERouteHandler::buildTripJunctions(), GNERouteHandler::buildTripTAZs(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSign(), GNERouteHandler::buildVehicleEmbeddedRoute(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildVType(), GNERouteHandler::buildVTypeDistribution(), CommonHandler(), and RouteHandler::parseVType().

◆ myNextSectionStart

std::pair<int, SUMOSAXAttributes*> GenericSAXHandler::myNextSectionStart
privateinherited

◆ myOverwriteElements

◆ myParentHandler

GenericSAXHandler* GenericSAXHandler::myParentHandler
privateinherited

The handler to give control back to.

Definition at line 327 of file GenericSAXHandler.h.

Referenced by callParentEnd(), endElement(), GenericSAXHandler(), and registerParent().

◆ myParentIndicator

int GenericSAXHandler::myParentIndicator
privateinherited

The tag indicating that control should be given back.

Definition at line 330 of file GenericSAXHandler.h.

Referenced by endElement(), GenericSAXHandler(), and registerParent().

◆ myPredefinedTags

AttrMap GenericSAXHandler::myPredefinedTags
privateinherited

Definition at line 306 of file GenericSAXHandler.h.

Referenced by GenericSAXHandler(), startElement(), and ~GenericSAXHandler().

◆ myPredefinedTagsMML

std::vector<std::string> GenericSAXHandler::myPredefinedTagsMML
privateinherited

the map from ids to their string representation

Definition at line 309 of file GenericSAXHandler.h.

Referenced by GenericSAXHandler(), and startElement().

◆ myRemainElements

◆ myRootSeen

bool GenericSAXHandler::myRootSeen = false
privateinherited

whether the reader has already seen the root element

Definition at line 342 of file GenericSAXHandler.h.

Referenced by startElement().

◆ mySection

int GenericSAXHandler::mySection = -1
privateinherited

The tag indicating the current section to parse.

Definition at line 345 of file GenericSAXHandler.h.

Referenced by endElement(), setSection(), and startElement().

◆ mySectionEnded

bool GenericSAXHandler::mySectionEnded = false
privateinherited

whether the reader has already seen the end of the section

Definition at line 351 of file GenericSAXHandler.h.

Referenced by sectionFinished(), setSection(), and startElement().

◆ mySectionOpen

bool GenericSAXHandler::mySectionOpen = false
privateinherited

whether an element of the current section is open

Definition at line 354 of file GenericSAXHandler.h.

Referenced by endElement(), setSection(), and startElement().

◆ mySectionSeen

bool GenericSAXHandler::mySectionSeen = false
privateinherited

whether the reader has already seen the begin of the section

Definition at line 348 of file GenericSAXHandler.h.

Referenced by setSection(), and startElement().

◆ myTagMap

TagMap GenericSAXHandler::myTagMap
privateinherited

Definition at line 320 of file GenericSAXHandler.h.

Referenced by convertTag(), and GenericSAXHandler().


The documentation for this class was generated from the following files: