Eclipse SUMO - Simulation of Urban MObility
SUMOSAXAttributes Class Referenceabstract

Encapsulated SAX-Attributes. More...

#include <SUMOSAXAttributes.h>

Inheritance diagram for SUMOSAXAttributes:
[legend]

Public Member Functions

template<typename T >
get (int attr, const char *objectid, bool &ok, bool report=true) const
 Tries to read given attribute assuming it is an int. More...
 
template<>
std::string getInternal (const int attr) const
 
template<typename T >
getOpt (int attr, const char *objectid, bool &ok, T defaultValue, bool report=true) const
 Tries to read given attribute assuming it is an int. More...
 
SUMOTime getOptSUMOTimeReporting (int attr, const char *objectid, bool &ok, SUMOTime defaultValue, bool report=true) const
 Tries to read given attribute assuming it is a SUMOTime. More...
 
SUMOTime getSUMOTimeReporting (int attr, const char *objectid, bool &ok, bool report=true) const
 Tries to read given attribute assuming it is a SUMOTime. More...
 
 SUMOSAXAttributes (const std::string &objectType)
 
virtual ~SUMOSAXAttributes ()
 Destructor. More...
 

virtual methods for retrieving attribute values

static const std::string ENCODING = " encoding=\"UTF-8\""
 The encoding of parsed strings. More...
 
std::string myObjectType
 the object type to use in error reporting More...
 
virtual bool hasAttribute (int id) const =0
 Returns the information whether the named (by its enum-value) attribute is within the current list. More...
 
virtual bool hasAttribute (const std::string &id) const =0
 Returns the information whether the named attribute is within the current list. More...
 
virtual bool getBool (int id) const =0
 Returns the bool-value of the named (by its enum-value) attribute. More...
 
virtual int getInt (int id) const =0
 Returns the int-value of the named (by its enum-value) attribute. More...
 
virtual long long int getLong (int id) const =0
 Returns the long-value of the named (by its enum-value) attribute. More...
 
virtual std::string getString (int id) const =0
 Returns the string-value of the named (by its enum-value) attribute. More...
 
virtual std::string getStringSecure (int id, const std::string &def) const =0
 Returns the string-value of the named (by its enum-value) attribute. More...
 
virtual double getFloat (int id) const =0
 Returns the double-value of the named (by its enum-value) attribute. More...
 
virtual double getFloat (const std::string &id) const =0
 Returns the double-value of the named attribute. More...
 
virtual std::string getStringSecure (const std::string &id, const std::string &def) const =0
 Returns the string-value of the named (by its enum-value) attribute. More...
 
virtual SumoXMLEdgeFunc getEdgeFunc (bool &ok) const =0
 Returns the value of the named attribute. More...
 
virtual SumoXMLNodeType getNodeType (bool &ok) const =0
 Returns the value of the named attribute. More...
 
virtual RightOfWay getRightOfWay (bool &ok) const =0
 Returns the right-of-way method. More...
 
virtual FringeType getFringeType (bool &ok) const =0
 returns fringe type More...
 
virtual RGBColor getColor () const =0
 Returns the value of the named attribute. More...
 
virtual PositionVector getShape (int attr) const =0
 Tries to read given attribute assuming it is a PositionVector. More...
 
virtual Boundary getBoundary (int attr) const =0
 Tries to read given attribute assuming it is a Boundary. More...
 
const std::vector< std::string > getStringVector (int attr) const
 Tries to read given attribute assuming it is a string vector. More...
 
const std::vector< std::string > getOptStringVector (int attr, const char *objectid, bool &ok, bool report=true) const
 convenience function to avoid the default argument and the template stuff at getOpt<> More...
 
const std::vector< int > getIntVector (int attr) const
 Tries to read given attribute assuming it is an int vector. More...
 
const std::vector< int > getOptIntVector (int attr, const char *objectid, bool &ok, bool report=true) const
 convenience function to avoid the default argument and the template stuff at getOpt<> More...
 
virtual std::string getName (int attr) const =0
 Converts the given attribute id into a man readable string. More...
 
virtual void serialize (std::ostream &os) const =0
 Prints all attribute names and values into the given stream. More...
 
virtual std::vector< std::string > getAttributeNames () const =0
 Retrieves all attribute names. More...
 
const std::string & getObjectType () const
 return the objecttype to which these attributes belong More...
 
virtual SUMOSAXAttributesclone () const =0
 return a new deep-copy attributes object More...
 
std::ostream & operator<< (std::ostream &os, const SUMOSAXAttributes &src)
 
template<typename T >
getInternal (const int attr) const
 
void emitUngivenError (const std::string &attrname, const char *objectid) const
 
void emitEmptyError (const std::string &attrname, const char *objectid) const
 
void emitFormatError (const std::string &attrname, const std::string &type, const char *objectid) const
 
 SUMOSAXAttributes (const SUMOSAXAttributes &src)
 Invalidated copy constructor. More...
 
SUMOSAXAttributesoperator= (const SUMOSAXAttributes &src)
 Invalidated assignment operator. More...
 

Detailed Description

Encapsulated SAX-Attributes.

This class is an interface for using encapsulated SAX-attributes. Encapsulation is done to allow a common acces without the need to import all the Xerces-definitions.

Definition at line 54 of file SUMOSAXAttributes.h.

Constructor & Destructor Documentation

◆ SUMOSAXAttributes() [1/2]

SUMOSAXAttributes::SUMOSAXAttributes ( const std::string &  objectType)

Definition at line 45 of file SUMOSAXAttributes.cpp.

◆ ~SUMOSAXAttributes()

virtual SUMOSAXAttributes::~SUMOSAXAttributes ( )
inlinevirtual

Destructor.

Definition at line 63 of file SUMOSAXAttributes.h.

◆ SUMOSAXAttributes() [2/2]

SUMOSAXAttributes::SUMOSAXAttributes ( const SUMOSAXAttributes src)
private

Invalidated copy constructor.

Member Function Documentation

◆ clone()

virtual SUMOSAXAttributes* SUMOSAXAttributes::clone ( ) const
pure virtual

return a new deep-copy attributes object

Implemented in SUMOSAXAttributesImpl_Xerces, and SUMOSAXAttributesImpl_Cached.

Referenced by MSStateHandler::myStartElement().

Here is the caller graph for this function:

◆ emitEmptyError()

void SUMOSAXAttributes::emitEmptyError ( const std::string &  attrname,
const char *  objectid 
) const
protected

Definition at line 160 of file SUMOSAXAttributes.cpp.

References myObjectType, and WRITE_ERROR.

Referenced by get(), getOpt(), getOptSUMOTimeReporting(), and getSUMOTimeReporting().

Here is the caller graph for this function:

◆ emitFormatError()

void SUMOSAXAttributes::emitFormatError ( const std::string &  attrname,
const std::string &  type,
const char *  objectid 
) const
protected

Definition at line 174 of file SUMOSAXAttributes.cpp.

References myObjectType, and WRITE_ERROR.

Referenced by get(), getOpt(), getOptSUMOTimeReporting(), and getSUMOTimeReporting().

Here is the caller graph for this function:

◆ emitUngivenError()

void SUMOSAXAttributes::emitUngivenError ( const std::string &  attrname,
const char *  objectid 
) const
protected

Definition at line 146 of file SUMOSAXAttributes.cpp.

References myObjectType, and WRITE_ERROR.

Referenced by get(), and getSUMOTimeReporting().

Here is the caller graph for this function:

◆ get()

template<typename T >
T SUMOSAXAttributes::get ( int  attr,
const char *  objectid,
bool &  ok,
bool  report = true 
) const

Tries to read given attribute assuming it is an int.

If an error occurs (the attribute is not there, it is not numeric), "ok" is set to false. If report is true an error message is written to MsgHandler::getErrorInstance.

If the value could be read, "ok" is not changed, and the value is returned.

Parameters
[in]attrThe id of the attribute to read
[in]objectidThe name of the parsed object; used for error message generation
[out]okWhether the value could be read
[in]reportWhether errors shall be written to msg handler's error instance
Returns
The read value if given and correct; -1 if an error occurred

Definition at line 490 of file SUMOSAXAttributes.h.

References emitEmptyError(), emitFormatError(), emitUngivenError(), getName(), and hasAttribute().

Referenced by NIXMLPTHandler::addAccess(), NIImporter_SUMO::addConnection(), NLHandler::addConnection(), NIXMLConnectionsHandler::addCrossing(), NLHandler::addDistrict(), NLHandler::addDistrictEdge(), NLHandler::addE1Detector(), NLHandler::addE2Detector(), NLHandler::addE3Entry(), NLHandler::addE3Exit(), NIImporter_SUMO::addEdge(), NIXMLEdgesHandler::addEdge(), NLHandler::addEdgeLaneMeanData(), ROJTRTurnDefLoader::addEdgeRel(), NLHandler::addInsertionPredecessorConstraint(), NLHandler::addInstantE1Detector(), NIXMLNodesHandler::addJoinCluster(), NIXMLNodesHandler::addJoinExclusion(), NIImporter_SUMO::addJunction(), NIImporter_SUMO::addLane(), NIXMLEdgesHandler::addLane(), NLHandler::addLane(), NIXMLNodesHandler::addNode(), NLHandler::addParam(), RONetHandler::addParam(), SUMORouteHandler::addParam(), GNERouteHandler::PersonValue::addPersonValue(), NLHandler::addPhase(), NIImporter_SUMO::addPhase(), ShapeHandler::addPOI(), ShapeHandler::addPoly(), NLHandler::addPredecessorConstraint(), NIXMLPTHandler::addPTLine(), NIXMLPTHandler::addPTLineFromFlow(), NIXMLPTHandler::addPTLineStop(), NIXMLPTHandler::addPTStop(), NIImporter_SUMO::addRequest(), NLHandler::addRequest(), MSRouteHandler::addRide(), NIXMLPTHandler::addRoute(), NLHandler::addRouteProbeDetector(), NIXMLPTHandler::addRouteStop(), NIXMLEdgesHandler::addSplit(), ROJTRTurnDefLoader::addToEdge(), MSRouteHandler::addTransport(), NLHandler::addVTypeProbeDetector(), MSRouteHandler::addWalk(), RORouteHandler::addWalk(), NIXMLConnectionsHandler::addWalkingArea(), NLHandler::addWAUTJunction(), NLHandler::addWAUTSwitch(), NLHandler::beginE3Detector(), NLHandler::beginEdgeParsing(), ROJTRTurnDefLoader::beginFromEdge(), SUMOVehicleParserHelper::beginVTypeParsing(), NLTriggerBuilder::buildVaporizer(), NIXMLEdgesHandler::deleteEdge(), NIXMLNodesHandler::deleteNode(), NLTriggerBuilder::getLane(), NLTriggerBuilder::getPosition(), NLHandler::initJunctionLogic(), NLHandler::initTrafficLightLogic(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NIImporter_SUMO::loadLocation(), MSRailSignalConstraint_Predecessor::loadState(), RODFDetectorHandler::myStartElement(), ROJTRTurnDefLoader::myStartElement(), MSRouteHandler::myStartElement(), MSStateHandler::myStartElement(), NIImporter_MATSim::NodesHandler::myStartElement(), NIImporter_MATSim::EdgesHandler::myStartElement(), NIImporter_OpenDrive::myStartElement(), NIImporter_SUMO::myStartElement(), NIXMLConnectionsHandler::myStartElement(), NIXMLEdgesHandler::myStartElement(), NIXMLNodesHandler::myStartElement(), NIXMLPTHandler::myStartElement(), NIXMLTrafficLightsHandler::myStartElement(), NIXMLTypesHandler::myStartElement(), NIImporter_Vissim::NIVissimXMLHandler_Streckendefinition::myStartElement(), NIImporter_Vissim::NIVissimXMLHandler_Zuflussdefinition::myStartElement(), NIImporter_Vissim::NIVissimXMLHandler_Parkplatzdefinition::myStartElement(), NIImporter_Vissim::NIVissimXMLHandler_Fahrzeugklassendefinition::myStartElement(), NIImporter_Vissim::NIVissimXMLHandler_VWunschentscheidungsdefinition::myStartElement(), NIImporter_Vissim::NIVissimXMLHandler_Geschwindigkeitsverteilungsdefinition::myStartElement(), NIImporter_Vissim::NIVissimXMLHandler_Routenentscheidungsdefinition::myStartElement(), NIImporter_Vissim::NIVissimXMLHandler_ConflictArea::myStartElement(), NLHandler::myStartElement(), ODAmitranHandler::myStartElement(), PCLoaderOSM::NodesHandler::myStartElement(), PCLoaderOSM::RelationsHandler::myStartElement(), PCLoaderOSM::EdgesHandler::myStartElement(), PCLoaderXML::myStartElement(), PCNetProjectionLoader::myStartElement(), PCTypeDefHandler::myStartElement(), RONetHandler::myStartElement(), RORouteHandler::myStartElement(), TrajectoriesHandler::myStartElement(), GUISettingsHandler::myStartElement(), ShapeHandler::myStartElement(), NIImporter_OpenStreetMap::NodesHandler::myStartElement(), NIImporter_OpenStreetMap::EdgesHandler::myStartElement(), NIImporter_OpenStreetMap::RelationHandler::myStartElement(), ODDistrictHandler::openDistrict(), NLHandler::openJunction(), MSRouteHandler::openRoute(), RORouteHandler::openRoute(), MSRouteHandler::openRouteDistribution(), RORouteHandler::openRouteDistribution(), MSRouteHandler::openVehicleTypeDistribution(), RORouteHandler::openVehicleTypeDistribution(), NLHandler::openWAUT(), RONetHandler::parseAccess(), NLTriggerBuilder::parseAndAddLotEntry(), NLTriggerBuilder::parseAndBeginParkingArea(), GNEAdditionalHandler::parseAndBuildAccess(), NLTriggerBuilder::parseAndBuildCalibrator(), GNEAdditionalHandler::parseAndBuildCalibratorFlow(), NLTriggerBuilder::parseAndBuildChargingStation(), GNEAdditionalHandler::parseAndBuildDetectorEntry(), GNEAdditionalHandler::parseAndBuildDetectorExit(), NLTriggerBuilder::parseAndBuildLaneSpeedTrigger(), NLTriggerBuilder::parseAndBuildOverheadWireClamp(), NLTriggerBuilder::parseAndBuildOverheadWireSection(), NLTriggerBuilder::parseAndBuildOverheadWireSegment(), GNEAdditionalHandler::parseAndBuildParkingSpace(), NLTriggerBuilder::parseAndBuildRerouter(), GNEAdditionalHandler::parseAndBuildRerouterClosingLaneReroute(), GNEAdditionalHandler::parseAndBuildRerouterClosingReroute(), GNEAdditionalHandler::parseAndBuildRerouterDestProbReroute(), GNEAdditionalHandler::parseAndBuildRerouterInterval(), GNEAdditionalHandler::parseAndBuildRerouterParkingAreaReroute(), GNEAdditionalHandler::parseAndBuildRerouterRouteProbReroute(), NLTriggerBuilder::parseAndBuildStoppingPlace(), GNEAdditionalHandler::parseAndBuildTAZ(), GNEAdditionalHandler::parseAndBuildTAZSink(), GNEAdditionalHandler::parseAndBuildTAZSource(), NLTriggerBuilder::parseAndBuildTractionSubstation(), GNEAdditionalHandler::parseAndBuildVariableSpeedSignStep(), GNEAttributeCarrier::parseAttributeFromXML(), SUMOVehicleParserHelper::parseCommonAttributes(), RONetHandler::parseConnection(), NIXMLConnectionsHandler::parseDeprecatedLaneDefinition(), RONetHandler::parseDistrict(), RONetHandler::parseDistrictEdge(), RONetHandler::parseEdge(), SUMOVehicleParserHelper::parseFlowAttributes(), MSRouteHandler::parseFromViaTo(), RORouteHandler::parseFromViaTo(), SUMOVehicleParserHelper::parseID(), SUMOVehicleParserHelper::parseJMParams(), RONetHandler::parseJunction(), RONetHandler::parseLane(), NIXMLConnectionsHandler::parseLaneBound(), NIXMLConnectionsHandler::parseLaneDefinition(), SUMOVehicleParserHelper::parseLCParams(), GNEAttributeCarrier::parseMaskedPositionAttribute(), GNEAdditionalHandler::parseParameter(), GNEDataHandler::parseParameter(), AGActivityGenHandler::parseStation(), SUMORouteHandler::parseStop(), parseStopOffsets(), RONetHandler::parseStoppingPlace(), ODDistrictHandler::parseTAZ(), SUMOVehicleParserHelper::parseVehicleAttributes(), SUMOVehicleParserHelper::parseVTypeEmbedded(), MSRouteHandler::parseWalkPositions(), RORouteHandler::parseWalkPositions(), NIXMLNodesHandler::processNodeType(), NIXMLNodesHandler::processTrafficLightDefinitions(), NIImporter_SUMO::readPosition(), NIXMLTrafficLightsHandler::removeTlConnection(), NIXMLTrafficLightsHandler::retrieveEdge(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), NLHandler::setLocation(), RONetHandler::setLocation(), NIXMLEdgesHandler::setNodes(), and SAXWeightsHandler::tryParseEdgeRel().

◆ getAttributeNames()

virtual std::vector<std::string> SUMOSAXAttributes::getAttributeNames ( ) const
pure virtual

Retrieves all attribute names.

Implemented in SUMOSAXAttributesImpl_Xerces, and SUMOSAXAttributesImpl_Cached.

Referenced by GUINet::DiscoverAttributes::myStartElement(), GNEDataHandler::parseAndBuildEdgeData(), GNEDataHandler::parseAndBuildEdgeRelationData(), and GNEDataHandler::parseAndBuildTAZRelationData().

Here is the caller graph for this function:

◆ getBool()

virtual bool SUMOSAXAttributes::getBool ( int  id) const
pure virtual

Returns the bool-value of the named (by its enum-value) attribute.

Tries to retrieve the attribute from the the attribute list. The retrieved attribute (which may be 0) is then parsed using TplConvert<XMLCh>::_2bool. If the attribute is empty or ==0, TplConvert<XMLCh>::_2bool throws an EmptyData-exception which is passed. If the value can not be parsed to a bool, TplConvert<XMLCh>::_2bool throws a BoolFormatException-exception which is passed.

Parameters
[in]idThe id of the attribute to return the value of
Returns
The attribute's value as a bool, if it could be read and parsed
Exceptions
EmptyDataIf the attribute is not known or the attribute value is an empty string
BoolFormatExceptionIf the attribute value can not be parsed to a bool

Implemented in SUMOSAXAttributesImpl_Xerces, and SUMOSAXAttributesImpl_Cached.

◆ getBoundary()

virtual Boundary SUMOSAXAttributes::getBoundary ( int  attr) const
pure virtual

Tries to read given attribute assuming it is a Boundary.

Parameters
[in]attrThe id of the attribute to read
Returns
The read value if given and not empty; empty Boundary if an error occurred

Implemented in SUMOSAXAttributesImpl_Xerces, and SUMOSAXAttributesImpl_Cached.

◆ getColor()

virtual RGBColor SUMOSAXAttributes::getColor ( ) const
pure virtual

Returns the value of the named attribute.

Tries to retrieve the attribute from the the attribute list.

Returns
The attribute's value as a RGBColor, if it could be read and parsed

Implemented in SUMOSAXAttributesImpl_Xerces, and SUMOSAXAttributesImpl_Cached.

◆ getEdgeFunc()

virtual SumoXMLEdgeFunc SUMOSAXAttributes::getEdgeFunc ( bool &  ok) const
pure virtual

Returns the value of the named attribute.

Tries to retrieve the attribute from the the attribute list.

Returns
The attribute's value as a string, if it could be read and parsed

Implemented in SUMOSAXAttributesImpl_Xerces, and SUMOSAXAttributesImpl_Cached.

Referenced by NIImporter_SUMO::addEdge(), NLHandler::beginEdgeParsing(), and RONetHandler::parseEdge().

Here is the caller graph for this function:

◆ getFloat() [1/2]

virtual double SUMOSAXAttributes::getFloat ( const std::string &  id) const
pure virtual

Returns the double-value of the named attribute.

Tries to retrieve the attribute from the the attribute list. The retrieved attribute (which may be 0) is then parsed using TplConvert<XMLCh>::_2double. If the attribute is empty or ==0, TplConvert<XMLCh>::_2double throws an EmptyData-exception which is passed. If the value can not be parsed to a double, TplConvert<XMLCh>::_2double throws a NumberFormatException-exception which is passed.

Parameters
[in]idThe name of the attribute to return the value of
Returns
The attribute's value as a float, if it could be read and parsed
Exceptions
EmptyDataIf the attribute is not known or the attribute value is an empty string
NumberFormatExceptionIf the attribute value can not be parsed to an double

Implemented in SUMOSAXAttributesImpl_Xerces, and SUMOSAXAttributesImpl_Cached.

◆ getFloat() [2/2]

virtual double SUMOSAXAttributes::getFloat ( int  id) const
pure virtual

Returns the double-value of the named (by its enum-value) attribute.

Tries to retrieve the attribute from the the attribute list. The retrieved attribute (which may be 0) is then parsed using TplConvert<XMLCh>::_2double. If the attribute is empty or ==0, TplConvert<XMLCh>::_2double throws an EmptyData-exception which is passed. If the value can not be parsed to a double, TplConvert<XMLCh>::_2double throws a NumberFormatException-exception which is passed.

Parameters
[in]idThe id of the attribute to return the value of
Returns
The attribute's value as a float, if it could be read and parsed
Exceptions
EmptyDataIf the attribute is not known or the attribute value is an empty string
NumberFormatExceptionIf the attribute value can not be parsed to an double

Implemented in SUMOSAXAttributesImpl_Xerces, and SUMOSAXAttributesImpl_Cached.

Referenced by NIImporter_SUMO::addLane(), MSStateHandler::closeVehicle(), MSStateHandler::myEndElement(), TrajectoriesHandler::myStartElement(), AGActivityGenHandler::parseBusStation(), AGActivityGenHandler::parseCityGates(), AGActivityGenHandler::parseClosingHour(), AGActivityGenHandler::parseOpeningHour(), AGActivityGenHandler::parseSchool(), AGActivityGenHandler::parseStreets(), SAXWeightsHandler::tryParse(), and SAXWeightsHandler::tryParseEdgeRel().

Here is the caller graph for this function:

◆ getFringeType()

virtual FringeType SUMOSAXAttributes::getFringeType ( bool &  ok) const
pure virtual

returns fringe type

Implemented in SUMOSAXAttributesImpl_Xerces, and SUMOSAXAttributesImpl_Cached.

Referenced by NIImporter_SUMO::addJunction(), and NIXMLNodesHandler::processNodeType().

Here is the caller graph for this function:

◆ getInt()

virtual int SUMOSAXAttributes::getInt ( int  id) const
pure virtual

Returns the int-value of the named (by its enum-value) attribute.

Tries to retrieve the attribute from the the attribute list. The retrieved attribute (which may be 0) is then parsed using TplConvert<XMLCh>::_2int. If the attribute is empty or ==0, TplConvert<XMLCh>::_2int throws an EmptyData-exception which is passed. If the value can not be parsed to an int, TplConvert<XMLCh>::_2int throws a NumberFormatException-exception which is passed.

Parameters
[in]idThe id of the attribute to return the value of
Returns
The attribute's value as an int, if it could be read and parsed
Exceptions
EmptyDataIf the attribute is not known or the attribute value is an empty string
NumberFormatExceptionIf the attribute value can not be parsed to an int

Implemented in SUMOSAXAttributesImpl_Xerces, and SUMOSAXAttributesImpl_Cached.

Referenced by MSStateHandler::myEndElement(), MSStateHandler::myStartElement(), AGActivityGenHandler::parseBracket(), AGActivityGenHandler::parseBusLine(), AGActivityGenHandler::parseBusStation(), AGActivityGenHandler::parseClosingHour(), AGActivityGenHandler::parseFrequency(), AGActivityGenHandler::parseGeneralCityInfo(), AGActivityGenHandler::parseOpeningHour(), and AGActivityGenHandler::parseSchool().

Here is the caller graph for this function:

◆ getInternal() [1/2]

template<>
std::vector< int > SUMOSAXAttributes::getInternal ( const int  attr) const

Definition at line 52 of file SUMOSAXAttributes.cpp.

References getString().

◆ getInternal() [2/2]

template<typename T >
T SUMOSAXAttributes::getInternal ( const int  attr) const
protected

◆ getIntVector()

const std::vector< int > SUMOSAXAttributes::getIntVector ( int  attr) const

Tries to read given attribute assuming it is an int vector.

The behavior is similar to Python's string.split(), so multiple consecutive whitespace do not generate empty strings and leading and trailing whitespace is silently omitted.

Parameters
[in]attrThe id of the attribute to read
Returns
The read value if given and not empty; empty vector if an error occurred

Definition at line 127 of file SUMOSAXAttributes.cpp.

References getString(), StringTokenizer::getVector(), and StringUtils::toInt().

◆ getLong()

virtual long long int SUMOSAXAttributes::getLong ( int  id) const
pure virtual

Returns the long-value of the named (by its enum-value) attribute.

Tries to retrieve the attribute from the the attribute list. The retrieved attribute (which may be 0) is then parsed using TplConvert<XMLCh>::_2long. If the attribute is empty or ==0, TplConvert<XMLCh>::_2long throws an EmptyData-exception which is passed. If the value can not be parsed to a long, TplConvert<XMLCh>::_2long throws a NumberFormatException-exception which is passed.

Parameters
[in]idThe id of the attribute to return the value of
Returns
The attribute's value as an int, if it could be read and parsed
Exceptions
EmptyDataIf the attribute is not known or the attribute value is an empty string
NumberFormatExceptionIf the attribute value can not be parsed to an int

Implemented in SUMOSAXAttributesImpl_Xerces, and SUMOSAXAttributesImpl_Cached.

Referenced by MSVehicleTransfer::loadState().

Here is the caller graph for this function:

◆ getName()

virtual std::string SUMOSAXAttributes::getName ( int  attr) const
pure virtual

Converts the given attribute id into a man readable string.

Parameters
[in]attrThe id of the attribute to return the name of
Returns
The name of the described attribute

Implemented in SUMOSAXAttributesImpl_Xerces, and SUMOSAXAttributesImpl_Cached.

Referenced by get(), getOpt(), getOptSUMOTimeReporting(), getSUMOTimeReporting(), and SUMOVehicleParserHelper::parseFlowAttributes().

Here is the caller graph for this function:

◆ getNodeType()

virtual SumoXMLNodeType SUMOSAXAttributes::getNodeType ( bool &  ok) const
pure virtual

Returns the value of the named attribute.

Tries to retrieve the attribute from the the attribute list.

Returns
The attribute's value as a string, if it could be read and parsed

Implemented in SUMOSAXAttributesImpl_Xerces, and SUMOSAXAttributesImpl_Cached.

Referenced by NIImporter_SUMO::addJunction(), NLHandler::openJunction(), and RONetHandler::parseJunction().

Here is the caller graph for this function:

◆ getObjectType()

const std::string& SUMOSAXAttributes::getObjectType ( ) const
inline

return the objecttype to which these attributes belong

Definition at line 394 of file SUMOSAXAttributes.h.

References myObjectType.

Referenced by SUMOSAXAttributesImpl_Cached::clone(), SUMOSAXAttributesImpl_Xerces::clone(), SUMOVehicleParserHelper::parseGuiShape(), ODDistrictHandler::parseTAZ(), and SUMOVehicleParserHelper::parseVehicleClass().

Here is the caller graph for this function:

◆ getOpt()

template<typename T >
T SUMOSAXAttributes::getOpt ( int  attr,
const char *  objectid,
bool &  ok,
defaultValue,
bool  report = true 
) const

Tries to read given attribute assuming it is an int.

If the attribute is not existing in the current element, the default value is returned. If an error occurs on parsing (the attribute is empty, it is not numeric), "ok" is set to false. If report is true an error message is written to MsgHandler::getErrorInstance.

If the value could be read, "ok" is not changed, and the value is returned.

Parameters
[in]attrThe id of the attribute to read
[in]objectidThe name of the parsed object; used for error message generation
[out]okWhether the value could be read
[in]defaultValueThe value to return if the attribute is not within the element
[in]reportWhether errors shall be written to msg handler's error instance
Returns
The read value if given and correct; the default value if the attribute does not exist; -1 if an error occurred

Definition at line 516 of file SUMOSAXAttributes.h.

References emitEmptyError(), emitFormatError(), getName(), and hasAttribute().

Referenced by NIXMLPTHandler::addAccess(), NLTriggerBuilder::addAccess(), NLDiscreteEventBuilder::addAction(), NIImporter_SUMO::addConnection(), NLHandler::addConnection(), NIXMLConnectionsHandler::addCrossing(), NLHandler::addDistrict(), NLHandler::addE1Detector(), NLHandler::addE2Detector(), NLHandler::addE3Entry(), NLHandler::addE3Exit(), NIImporter_SUMO::addEdge(), NIXMLEdgesHandler::addEdge(), NLHandler::addEdgeLaneMeanData(), NLHandler::addInsertionPredecessorConstraint(), NLHandler::addInstantE1Detector(), NIXMLNodesHandler::addJoinCluster(), NIImporter_SUMO::addJunction(), NIImporter_SUMO::addLane(), NIXMLEdgesHandler::addLane(), NLHandler::addLane(), NLHandler::addMesoEdgeType(), MSRouteHandler::addPersonTrip(), RORouteHandler::addPersonTrip(), NLHandler::addPhase(), NIImporter_SUMO::addPhase(), ShapeHandler::addPOI(), ShapeHandler::addPoly(), NLHandler::addPredecessorConstraint(), NIImporter_SUMO::addProhibition(), NIXMLPTHandler::addPTLine(), NIXMLPTHandler::addPTLineFromFlow(), NIXMLPTHandler::addPTStop(), NLHandler::addRequest(), MSRouteHandler::addRide(), NLHandler::addRouteProbeDetector(), NIXMLEdgesHandler::addSplit(), MSRouteHandler::addStop(), GNERouteHandler::addStop(), RORouteHandler::addStop(), NIXMLTrafficLightsHandler::addTlConnection(), MSRouteHandler::addTransport(), MSRouteHandler::addWalk(), RORouteHandler::addWalk(), NIXMLConnectionsHandler::addWalkingArea(), NLHandler::addWAUTJunction(), NLHandler::beginE3Detector(), NLHandler::beginEdgeParsing(), SUMOVehicleParserHelper::beginVTypeParsing(), NLDiscreteEventBuilder::buildSaveTLSProgramCommand(), NLDiscreteEventBuilder::buildSaveTLStateCommand(), NLDiscreteEventBuilder::buildSaveTLSwitchesCommand(), NLDiscreteEventBuilder::buildSaveTLSwitchStatesCommand(), NIXMLEdgesHandler::deleteEdge(), NLTriggerBuilder::getFileName(), NLTriggerBuilder::getPosition(), NLHandler::initTrafficLightLogic(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), RODFDetectorHandler::myStartElement(), MSRouteHandler::myStartElement(), MSStateHandler::myStartElement(), MSCalibrator::myStartElement(), MSLaneSpeedTrigger::myStartElement(), MSTriggeredRerouter::myStartElement(), NIImporter_MATSim::EdgesHandler::myStartElement(), NIImporter_OpenDrive::myStartElement(), NIImporter_SUMO::myStartElement(), NIXMLConnectionsHandler::myStartElement(), NIXMLTypesHandler::myStartElement(), NLHandler::myStartElement(), PCLoaderOSM::NodesHandler::myStartElement(), PCLoaderOSM::RelationsHandler::myStartElement(), PCLoaderOSM::EdgesHandler::myStartElement(), PCLoaderXML::myStartElement(), PCTypeDefHandler::myStartElement(), RORouteHandler::myStartElement(), TrajectoriesHandler::myStartElement(), GUISettingsHandler::myStartElement(), SAXWeightsHandler::myStartElement(), NLHandler::openJunction(), MSRouteHandler::openRoute(), RORouteHandler::openRoute(), RORouteHandler::openRouteDistribution(), RONetHandler::parseAccess(), NLTriggerBuilder::parseAndAddLotEntry(), NLTriggerBuilder::parseAndBeginParkingArea(), NLTriggerBuilder::parseAndBuildCalibrator(), NLTriggerBuilder::parseAndBuildChargingStation(), NLTriggerBuilder::parseAndBuildOverheadWireSection(), NLTriggerBuilder::parseAndBuildOverheadWireSegment(), GNEAdditionalHandler::parseAndBuildPoly(), GNEAdditionalHandler::parseAndBuildRerouter(), NLTriggerBuilder::parseAndBuildRerouter(), NLTriggerBuilder::parseAndBuildStoppingPlace(), NLTriggerBuilder::parseAndBuildTractionSubstation(), SUMOVehicleParserHelper::parseCommonAttributes(), RONetHandler::parseConnection(), RONetHandler::parseEdge(), MSRouteHandler::parseFromViaTo(), RORouteHandler::parseFromViaTo(), AGActivityGenHandler::parseGeneralCityInfo(), SUMOVehicleParserHelper::parseGuiShape(), RONetHandler::parseJunction(), RONetHandler::parseLane(), NIXMLConnectionsHandler::parseLaneBound(), AGActivityGenHandler::parseParameters(), SUMORouteHandler::parseStop(), parseStopOffsets(), RONetHandler::parseStoppingPlace(), SUMOVehicleParserHelper::parseVehicleAttributes(), SUMOVehicleParserHelper::parseVehicleClass(), MSRouteHandler::parseWalkPositions(), RORouteHandler::parseWalkPositions(), NIXMLNodesHandler::processNodeType(), NIXMLNodesHandler::processTrafficLightDefinitions(), NIImporter_SUMO::readPosition(), NIXMLEdgesHandler::tryGetLaneSpread(), and NIXMLEdgesHandler::tryGetShape().

◆ getOptIntVector()

const std::vector< int > SUMOSAXAttributes::getOptIntVector ( int  attr,
const char *  objectid,
bool &  ok,
bool  report = true 
) const

convenience function to avoid the default argument and the template stuff at getOpt<>

Definition at line 141 of file SUMOSAXAttributes.cpp.

Referenced by NLHandler::addPhase(), and NIImporter_SUMO::addPhase().

Here is the caller graph for this function:

◆ getOptStringVector()

const std::vector< std::string > SUMOSAXAttributes::getOptStringVector ( int  attr,
const char *  objectid,
bool &  ok,
bool  report = true 
) const

convenience function to avoid the default argument and the template stuff at getOpt<>

Definition at line 122 of file SUMOSAXAttributes.cpp.

Referenced by NIXMLEdgesHandler::addSplit(), NLTriggerBuilder::parseAndBeginParkingArea(), NLTriggerBuilder::parseAndBuildStoppingPlace(), SUMORouteHandler::parseStop(), and NIXMLNodesHandler::processTrafficLightDefinitions().

Here is the caller graph for this function:

◆ getOptSUMOTimeReporting()

SUMOTime SUMOSAXAttributes::getOptSUMOTimeReporting ( int  attr,
const char *  objectid,
bool &  ok,
SUMOTime  defaultValue,
bool  report = true 
) const

Tries to read given attribute assuming it is a SUMOTime.

If the attribute is not existing in the current element, the default value is returned. If an error occurs on parsing (the attribute is empty, it is not numeric), "ok" is set to false. If report is true an error message is written to MsgHandler::getErrorInstance.

Otherwise, "ok" is not changed.

In dependence to the used time representation, either get<int> or get<double> is used.

Parameters
[in]attrThe id of the attribute to read
[in]objectidThe name of the parsed object; used for error message generation
[out]okWhether the value could be read
[in]defaultValueThe value to return if the attribute is not within the element
[in]reportWhether errors shall be written to msg handler's error instance
Returns
The read value if given and correct; the default value if the attribute does not exist; -1 if an error occurred

Definition at line 89 of file SUMOSAXAttributes.cpp.

References emitEmptyError(), emitFormatError(), getName(), hasAttribute(), and string2time().

Referenced by NLHandler::addE2Detector(), NLHandler::addEdgeLaneMeanData(), NLHandler::addMesoEdgeType(), MSRouteHandler::addPersonTrip(), RORouteHandler::addPersonTrip(), NLHandler::addPhase(), NIImporter_SUMO::addPhase(), MSRouteHandler::addRide(), NLHandler::addRouteProbeDetector(), MSRouteHandler::addWalk(), NLHandler::beginE3Detector(), NLHandler::initTrafficLightLogic(), MSCalibrator::myStartElement(), MSTriggeredRerouter::myStartElement(), GUISettingsHandler::myStartElement(), MSRouteHandler::openRoute(), RORouteHandler::openRoute(), NLHandler::openWAUT(), NLTriggerBuilder::parseAndBuildCalibrator(), GNEAdditionalHandler::parseAndBuildRerouter(), and SUMORouteHandler::parseStop().

Here is the caller graph for this function:

◆ getRightOfWay()

virtual RightOfWay SUMOSAXAttributes::getRightOfWay ( bool &  ok) const
pure virtual

Returns the right-of-way method.

Implemented in SUMOSAXAttributesImpl_Xerces, and SUMOSAXAttributesImpl_Cached.

Referenced by NIImporter_SUMO::addJunction(), and NIXMLNodesHandler::processNodeType().

Here is the caller graph for this function:

◆ getShape()

virtual PositionVector SUMOSAXAttributes::getShape ( int  attr) const
pure virtual

Tries to read given attribute assuming it is a PositionVector.

Parameters
[in]attrThe id of the attribute to read
Returns
The read value if given and not empty; empty position vector if an error occurred

Implemented in SUMOSAXAttributesImpl_Xerces, and SUMOSAXAttributesImpl_Cached.

◆ getString()

virtual std::string SUMOSAXAttributes::getString ( int  id) const
pure virtual

Returns the string-value of the named (by its enum-value) attribute.

Tries to retrieve the attribute from the the attribute list. The retrieved attribute (which may be 0) is then parsed using TplConvert<XMLCh>::_2str. If the attribute is ==0, TplConvert<XMLCh>::_2str throws an EmptyData-exception which is passed.

Parameters
[in]idThe id of the attribute to return the value of
Returns
The attribute's value as a string, if it could be read and parsed
Exceptions
EmptyDataIf the attribute is not known or the attribute value is an empty string

Implemented in SUMOSAXAttributesImpl_Xerces, and SUMOSAXAttributesImpl_Cached.

Referenced by NLHandler::addParam(), RONetHandler::addParam(), SUMORouteHandler::addParam(), getInternal(), getIntVector(), getStringVector(), MSDevice_Routing::loadState(), MSDevice_Transportable::loadState(), MSDevice_Tripinfo::loadState(), MSDevice_Vehroutes::loadState(), MSTransportableDevice_Routing::loadState(), MSRailSignalConstraint_Predecessor::loadState(), MEVehicle::loadState(), MSVehicle::loadState(), MSVehicleTransfer::loadState(), MSStateHandler::myEndElement(), ROMARouteHandler::myStartElement(), MSStateHandler::myStartElement(), GNEMultipleParametersDialog::ParametersOperations::GNEParameterHandler::myStartElement(), GNESingleParametersDialog::ParametersOperations::GNEParameterHandler::myStartElement(), NIImporter_SUMO::myStartElement(), NIXMLEdgesHandler::myStartElement(), NIXMLNodesHandler::myStartElement(), NIXMLTrafficLightsHandler::myStartElement(), NLHandler::myStartElement(), TrajectoriesHandler::myStartElement(), ShapeHandler::myStartElement(), AGActivityGenHandler::parseBusLine(), AGActivityGenHandler::parseBusStation(), AGActivityGenHandler::parseCityGates(), GNEAdditionalHandler::parseParameter(), GNEDataHandler::parseParameter(), AGActivityGenHandler::parseSchool(), and AGActivityGenHandler::parseStreets().

Here is the caller graph for this function:

◆ getStringSecure() [1/2]

virtual std::string SUMOSAXAttributes::getStringSecure ( const std::string &  id,
const std::string &  def 
) const
pure virtual

Returns the string-value of the named (by its enum-value) attribute.

Tries to retrieve the attribute from the the attribute list. If the attribute is ==0, TplConvert<XMLCh>::_2strSec returns the default value.

Parameters
[in]idThe name of the attribute to return the value of
[in]defThe default value to return if the attribute is not in attributes
Returns
The attribute's value as a string, if it could be read and parsed

Implemented in SUMOSAXAttributesImpl_Xerces, and SUMOSAXAttributesImpl_Cached.

◆ getStringSecure() [2/2]

virtual std::string SUMOSAXAttributes::getStringSecure ( int  id,
const std::string &  def 
) const
pure virtual

Returns the string-value of the named (by its enum-value) attribute.

Tries to retrieve the attribute from the the attribute list. The retrieved attribute (which may be 0) is then parsed using TplConvert<XMLCh>::_2strSec. If the attribute is ==0, TplConvert<XMLCh>::_2strSec returns the default value.

Parameters
[in]idThe id of the attribute to return the value of
[in]defThe default value to return if the attribute is not in attributes
Returns
The attribute's value as a string, if it could be read and parsed
Exceptions
EmptyDataIf the attribute is not known or the attribute value is an empty string

Implemented in SUMOSAXAttributesImpl_Xerces, and SUMOSAXAttributesImpl_Cached.

Referenced by NIXMLEdgesHandler::addEdge(), NLHandler::addPhase(), NIXMLPTHandler::addPTLine(), NLHandler::addVTypeProbeDetector(), MSTriggeredRerouter::myStartElement(), PCLoaderOSM::RelationsHandler::myStartElement(), PCLoaderOSM::EdgesHandler::myStartElement(), GUISettingsHandler::myStartElement(), NIImporter_OpenStreetMap::NodesHandler::myStartElement(), NIImporter_OpenStreetMap::EdgesHandler::myStartElement(), NIImporter_OpenStreetMap::RelationHandler::myStartElement(), NLHandler::openJunction(), GNEDataHandler::parseAndBuildEdgeData(), GNEDataHandler::parseAndBuildEdgeRelationData(), GNEDataHandler::parseAndBuildTAZRelationData(), GUISettingsHandler::parseSizeSettings(), and GUISettingsHandler::parseTextSettings().

Here is the caller graph for this function:

◆ getStringVector()

const std::vector< std::string > SUMOSAXAttributes::getStringVector ( int  attr) const

Tries to read given attribute assuming it is a string vector.

The behavior is similar to Python's string.split(), so multiple consecutive whitespace do not generate empty strings and leading and trailing whitespace is silently omitted.

Parameters
[in]attrThe id of the attribute to read
Returns
The read value if given and not empty; empty vector if an error occurred

Definition at line 112 of file SUMOSAXAttributes.cpp.

References getString(), and StringTokenizer::getVector().

Referenced by NLHandler::addDistrict(), NIXMLPTHandler::addPTLineRoute(), NIImporter_SUMO::addRoundabout(), NIXMLEdgesHandler::addRoundabout(), NLHandler::addRoundabout(), NIXMLPTHandler::addRoute(), MSRailSignalConstraint_Predecessor::loadState(), MSStateHandler::myStartElement(), ODDistrictHandler::openDistrict(), NLTriggerBuilder::parseAndBuildOverheadWireSection(), RONetHandler::parseDistrict(), MSRouteHandler::parseFromViaTo(), and RORouteHandler::parseFromViaTo().

Here is the caller graph for this function:

◆ getSUMOTimeReporting()

SUMOTime SUMOSAXAttributes::getSUMOTimeReporting ( int  attr,
const char *  objectid,
bool &  ok,
bool  report = true 
) const

Tries to read given attribute assuming it is a SUMOTime.

If an error occurs (the attribute is not there, it is not numeric), "ok" is set to false and an error message is written to MsgHandler::getErrorInstance.

Otherwise, "ok" is not changed.

In dependence to the used time representation, either get<int> or get<double> is used.

Parameters
[in]attrThe id of the attribute to read
[in]objectidThe name of the parsed object; used for error message generation
[out]okWhether the value could be read
[in]reportWhether errors shall be written to msg handler's error instance
Returns
The read value if given and correct; -1 if an error occurred

Definition at line 62 of file SUMOSAXAttributes.cpp.

References emitEmptyError(), emitFormatError(), emitUngivenError(), getName(), hasAttribute(), and string2time().

Referenced by NLHandler::addE1Detector(), NLHandler::addE2Detector(), NLHandler::addPhase(), NLHandler::addRouteProbeDetector(), NLHandler::addVTypeProbeDetector(), NLHandler::addWAUTSwitch(), NLHandler::beginE3Detector(), SUMOVehicleParserHelper::beginVTypeParsing(), NLTriggerBuilder::buildVaporizer(), GUINet::DiscoverAttributes::myStartElement(), MSCalibrator::myStartElement(), MSLaneSpeedTrigger::myStartElement(), TrajectoriesHandler::myStartElement(), GUISettingsHandler::myStartElement(), SUMORouteHandler::myStartElement(), SAXWeightsHandler::myStartElement(), and SUMOVehicleParserHelper::parseFlowAttributes().

Here is the caller graph for this function:

◆ hasAttribute() [1/2]

virtual bool SUMOSAXAttributes::hasAttribute ( const std::string &  id) const
pure virtual

Returns the information whether the named attribute is within the current list.

Parameters
[in]idThe name of the attribute to search for
Returns
Whether the named attribute is within the attributes

Implemented in SUMOSAXAttributesImpl_Xerces, and SUMOSAXAttributesImpl_Cached.

◆ hasAttribute() [2/2]

virtual bool SUMOSAXAttributes::hasAttribute ( int  id) const
pure virtual

Returns the information whether the named (by its enum-value) attribute is within the current list.

Parameters
[in]idThe id of the attribute to search for
Returns
Whether the attribute is within the attributes

Implemented in SUMOSAXAttributesImpl_Xerces, and SUMOSAXAttributesImpl_Cached.

Referenced by NIXMLConnectionsHandler::addCrossing(), NLHandler::addDistrict(), NIXMLEdgesHandler::addEdge(), ROJTRTurnDefLoader::addEdgeRel(), NIXMLNodesHandler::addJoinCluster(), NIImporter_SUMO::addJunction(), NIImporter_SUMO::addLane(), NIXMLEdgesHandler::addLane(), NIXMLNodesHandler::addNode(), NLHandler::addParam(), RONetHandler::addParam(), SUMORouteHandler::addParam(), MSRouteHandler::addPersonTrip(), RORouteHandler::addPersonTrip(), GNERouteHandler::PersonValue::addPersonValue(), NLHandler::addPhase(), ShapeHandler::addPOI(), ShapeHandler::addPoly(), NIXMLPTHandler::addPTLine(), NIXMLPTHandler::addPTLineStop(), MSRouteHandler::addRide(), NIImporter_SUMO::addRoundabout(), NIXMLEdgesHandler::addRoundabout(), NLHandler::addRoundabout(), NIXMLPTHandler::addRouteStop(), NIXMLEdgesHandler::addSplit(), MSRouteHandler::addStop(), GNERouteHandler::addStop(), MSRouteHandler::addTransport(), MSRouteHandler::addWalk(), RORouteHandler::addWalk(), NIXMLConnectionsHandler::addWalkingArea(), NLHandler::beginEdgeParsing(), SUMOVehicleParserHelper::beginVTypeParsing(), get(), getOpt(), getOptSUMOTimeReporting(), getSUMOTimeReporting(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), MEVehicle::loadState(), MSVehicle::loadState(), MSVehicleTransfer::loadState(), ROJTRTurnDefLoader::myStartElement(), ROMARouteHandler::myStartElement(), MSRouteHandler::myStartElement(), MSStateHandler::myStartElement(), MSTriggeredRerouter::myStartElement(), GNEMultipleParametersDialog::ParametersOperations::GNEParameterHandler::myStartElement(), GNESingleParametersDialog::ParametersOperations::GNEParameterHandler::myStartElement(), NIImporter_MATSim::EdgesHandler::myStartElement(), NIImporter_OpenDrive::myStartElement(), NIImporter_SUMO::myStartElement(), NIXMLConnectionsHandler::myStartElement(), NIXMLEdgesHandler::myStartElement(), NIXMLNodesHandler::myStartElement(), NIXMLTrafficLightsHandler::myStartElement(), NIXMLTypesHandler::myStartElement(), PCLoaderOSM::RelationsHandler::myStartElement(), PCLoaderOSM::EdgesHandler::myStartElement(), RORouteHandler::myStartElement(), TrajectoriesHandler::myStartElement(), GUISettingsHandler::myStartElement(), ShapeHandler::myStartElement(), NIImporter_OpenStreetMap::NodesHandler::myStartElement(), NIImporter_OpenStreetMap::EdgesHandler::myStartElement(), NIImporter_OpenStreetMap::RelationHandler::myStartElement(), ODDistrictHandler::openDistrict(), NLHandler::openJunction(), MSRouteHandler::openRoute(), GNERouteHandler::openRoute(), RORouteHandler::openRoute(), MSRouteHandler::openRouteDistribution(), RORouteHandler::openRouteDistribution(), MSRouteHandler::openVehicleTypeDistribution(), RORouteHandler::openVehicleTypeDistribution(), GNEAdditionalHandler::parseAndBuildAccess(), GNEAdditionalHandler::parseAndBuildBusStop(), GNEAdditionalHandler::parseAndBuildCalibrator(), NLTriggerBuilder::parseAndBuildCalibrator(), GNEAdditionalHandler::parseAndBuildChargingStation(), GNEAdditionalHandler::parseAndBuildContainerStop(), GNEAdditionalHandler::parseAndBuildDetectorE1(), GNEAdditionalHandler::parseAndBuildDetectorE1Instant(), GNEAdditionalHandler::parseAndBuildDetectorE2(), GNEAdditionalHandler::parseAndBuildDetectorE3(), GNEAdditionalHandler::parseAndBuildDetectorEntry(), GNEAdditionalHandler::parseAndBuildDetectorExit(), GNEAdditionalHandler::parseAndBuildParkingArea(), GNEAdditionalHandler::parseAndBuildParkingSpace(), GNEAdditionalHandler::parseAndBuildPOI(), GNEAdditionalHandler::parseAndBuildRerouter(), GNEAdditionalHandler::parseAndBuildRouteProbe(), GNEAdditionalHandler::parseAndBuildTAZ(), GNEAdditionalHandler::parseAndBuildVaporizer(), GNEAdditionalHandler::parseAndBuildVariableSpeedSign(), GNEAttributeCarrier::parseAttributeFromXML(), SUMOVehicleParserHelper::parseCommonAttributes(), RONetHandler::parseDistrict(), SUMOVehicleParserHelper::parseFlowAttributes(), MSRouteHandler::parseFromViaTo(), RORouteHandler::parseFromViaTo(), SUMOVehicleParserHelper::parseID(), SUMOVehicleParserHelper::parseJMParams(), NIXMLConnectionsHandler::parseLaneBound(), NIXMLConnectionsHandler::parseLaneInfo(), SUMOVehicleParserHelper::parseLCParams(), GNEAttributeCarrier::parseMaskedPositionAttribute(), GNEAdditionalHandler::parseParameter(), GNEDataHandler::parseParameter(), SUMORouteHandler::parseStop(), parseStopOffsets(), AGActivityGenHandler::parseStreets(), SUMOVehicleParserHelper::parseVTypeEmbedded(), MSRouteHandler::parseWalkPositions(), RORouteHandler::parseWalkPositions(), NIXMLNodesHandler::processNodeType(), NIXMLNodesHandler::processTrafficLightDefinitions(), NIXMLEdgesHandler::setNodes(), NIXMLEdgesHandler::tryGetShape(), SAXWeightsHandler::tryParse(), and SAXWeightsHandler::tryParseEdgeRel().

◆ operator=()

SUMOSAXAttributes& SUMOSAXAttributes::operator= ( const SUMOSAXAttributes src)
private

Invalidated assignment operator.

◆ serialize()

virtual void SUMOSAXAttributes::serialize ( std::ostream &  os) const
pure virtual

Prints all attribute names and values into the given stream.

Parameters
[in]osThe stream to use

Implemented in SUMOSAXAttributesImpl_Xerces, and SUMOSAXAttributesImpl_Cached.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const SUMOSAXAttributes src 
)
friend

Definition at line 427 of file SUMOSAXAttributes.h.

Field Documentation

◆ ENCODING

const std::string SUMOSAXAttributes::ENCODING = " encoding=\"UTF-8\""
static

The encoding of parsed strings.

Definition at line 405 of file SUMOSAXAttributes.h.

Referenced by OptionsCont::writeXMLHeader().

◆ myObjectType

std::string SUMOSAXAttributes::myObjectType
private

the object type to use in error reporting

Definition at line 422 of file SUMOSAXAttributes.h.

Referenced by emitEmptyError(), emitFormatError(), emitUngivenError(), and getObjectType().


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