Eclipse SUMO - Simulation of Urban MObility
GNEAdditionalHandler::LastInsertedElement Class Reference

Stack used to save the last inserted element. More...

#include <GNEAdditionalHandler.h>

Data Structures

struct  StackElement
 stack element More...
 

Public Member Functions

void commitAdditionalInsertion (GNEAdditional *additionalCreated)
 commit additional element insertion (used to save last correct created element) More...
 
void commitShapeInsertion (GNEShape *shapeCreated)
 commit shape element insertion (used to save last correct created element) More...
 
void commitTAZElementInsertion (GNETAZElement *TAZElementCreated)
 commit TAZElement element insertion (used to save last correct created element) More...
 
GNEAdditionalgetAdditionalParent (GNENet *net, SumoXMLTag expectedTag) const
 retrieve parent additional correspond to current status of myInsertedElements More...
 
GNEAdditionalgetLastInsertedAdditional () const
 return last inserted additional More...
 
GNEShapegetLastInsertedShape () const
 return last inserted shape More...
 
GNETAZElementgetLastInsertedTAZElement () const
 return last inserted TAZElement More...
 
GNEShapegetShapeParent (GNENet *net, SumoXMLTag expectedTag) const
 retrieve parent shape correspond to current status of myInsertedElements More...
 
GNETAZElementgetTAZElementParent (GNENet *net, SumoXMLTag expectedTag) const
 retrieve parent TAZElement correspond to current status of myInsertedElements More...
 
void insertElement (SumoXMLTag tag)
 insert new element (called only in function myStartElement) More...
 
void popElement ()
 pop last inserted element (used only in function myEndElement) More...
 

Private Attributes

std::vector< StackElementmyInsertedElements
 vector used as stack More...
 

Detailed Description

Stack used to save the last inserted element.

Definition at line 51 of file GNEAdditionalHandler.h.

Member Function Documentation

◆ commitAdditionalInsertion()

void GNEAdditionalHandler::LastInsertedElement::commitAdditionalInsertion ( GNEAdditional additionalCreated)

commit additional element insertion (used to save last correct created element)

Definition at line 2727 of file GNEAdditionalHandler.cpp.

Referenced by GNEAdditionalHandler::GNEAdditionalHandler(), GNEAdditionalHandler::parseAndBuildAccess(), GNEAdditionalHandler::parseAndBuildBusStop(), GNEAdditionalHandler::parseAndBuildCalibrator(), GNEAdditionalHandler::parseAndBuildCalibratorFlow(), GNEAdditionalHandler::parseAndBuildChargingStation(), GNEAdditionalHandler::parseAndBuildContainerStop(), GNEAdditionalHandler::parseAndBuildDetectorE1(), GNEAdditionalHandler::parseAndBuildDetectorE1Instant(), GNEAdditionalHandler::parseAndBuildDetectorE2(), GNEAdditionalHandler::parseAndBuildDetectorE3(), GNEAdditionalHandler::parseAndBuildDetectorEntry(), GNEAdditionalHandler::parseAndBuildDetectorExit(), GNEAdditionalHandler::parseAndBuildParkingArea(), GNEAdditionalHandler::parseAndBuildParkingSpace(), GNEAdditionalHandler::parseAndBuildRerouter(), GNEAdditionalHandler::parseAndBuildRerouterClosingLaneReroute(), GNEAdditionalHandler::parseAndBuildRerouterClosingReroute(), GNEAdditionalHandler::parseAndBuildRerouterDestProbReroute(), GNEAdditionalHandler::parseAndBuildRerouterInterval(), GNEAdditionalHandler::parseAndBuildRerouterParkingAreaReroute(), GNEAdditionalHandler::parseAndBuildRerouterRouteProbReroute(), GNEAdditionalHandler::parseAndBuildRouteProbe(), GNEAdditionalHandler::parseAndBuildVaporizer(), GNEAdditionalHandler::parseAndBuildVariableSpeedSign(), and GNEAdditionalHandler::parseAndBuildVariableSpeedSignStep().

Here is the caller graph for this function:

◆ commitShapeInsertion()

void GNEAdditionalHandler::LastInsertedElement::commitShapeInsertion ( GNEShape shapeCreated)

commit shape element insertion (used to save last correct created element)

Definition at line 2733 of file GNEAdditionalHandler.cpp.

Referenced by GNEAdditionalHandler::parseAndBuildPOI(), and GNEAdditionalHandler::parseAndBuildPoly().

Here is the caller graph for this function:

◆ commitTAZElementInsertion()

void GNEAdditionalHandler::LastInsertedElement::commitTAZElementInsertion ( GNETAZElement TAZElementCreated)

commit TAZElement element insertion (used to save last correct created element)

Definition at line 2739 of file GNEAdditionalHandler.cpp.

Referenced by GNEAdditionalHandler::parseAndBuildTAZ(), GNEAdditionalHandler::parseAndBuildTAZSink(), and GNEAdditionalHandler::parseAndBuildTAZSource().

Here is the caller graph for this function:

◆ getAdditionalParent()

◆ getLastInsertedAdditional()

GNEAdditional * GNEAdditionalHandler::LastInsertedElement::getLastInsertedAdditional ( ) const

return last inserted additional

Definition at line 2852 of file GNEAdditionalHandler.cpp.

References SUMO_TAG_PARAM.

Referenced by GNEAdditionalHandler::parseParameter().

Here is the caller graph for this function:

◆ getLastInsertedShape()

GNEShape * GNEAdditionalHandler::LastInsertedElement::getLastInsertedShape ( ) const

return last inserted shape

Definition at line 2865 of file GNEAdditionalHandler.cpp.

References SUMO_TAG_PARAM.

Referenced by GNEAdditionalHandler::parseParameter().

Here is the caller graph for this function:

◆ getLastInsertedTAZElement()

GNETAZElement * GNEAdditionalHandler::LastInsertedElement::getLastInsertedTAZElement ( ) const

return last inserted TAZElement

Definition at line 2878 of file GNEAdditionalHandler.cpp.

References SUMO_TAG_PARAM.

Referenced by GNEAdditionalHandler::myEndElement(), and GNEAdditionalHandler::parseParameter().

Here is the caller graph for this function:

◆ getShapeParent()

GNEShape * GNEAdditionalHandler::LastInsertedElement::getShapeParent ( GNENet net,
SumoXMLTag  expectedTag 
) const

retrieve parent shape correspond to current status of myInsertedElements

Definition at line 2790 of file GNEAdditionalHandler.cpp.

References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNENet::retrieveShape(), toString(), and WRITE_WARNING.

◆ getTAZElementParent()

GNETAZElement * GNEAdditionalHandler::LastInsertedElement::getTAZElementParent ( GNENet net,
SumoXMLTag  expectedTag 
) const

retrieve parent TAZElement correspond to current status of myInsertedElements

Definition at line 2821 of file GNEAdditionalHandler.cpp.

References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNENet::retrieveTAZElement(), toString(), and WRITE_WARNING.

Referenced by GNEAdditionalHandler::parseAndBuildTAZSink(), and GNEAdditionalHandler::parseAndBuildTAZSource().

Here is the caller graph for this function:

◆ insertElement()

void GNEAdditionalHandler::LastInsertedElement::insertElement ( SumoXMLTag  tag)

insert new element (called only in function myStartElement)

Definition at line 2721 of file GNEAdditionalHandler.cpp.

References myInsertedElements.

Referenced by GNEAdditionalHandler::GNEAdditionalHandler(), and GNEAdditionalHandler::myStartElement().

Here is the caller graph for this function:

◆ popElement()

void GNEAdditionalHandler::LastInsertedElement::popElement ( )

pop last inserted element (used only in function myEndElement)

Definition at line 2745 of file GNEAdditionalHandler.cpp.

Referenced by GNEAdditionalHandler::myEndElement().

Here is the caller graph for this function:

Field Documentation

◆ myInsertedElements

std::vector<StackElement> GNEAdditionalHandler::LastInsertedElement::myInsertedElements
private

vector used as stack

Definition at line 107 of file GNEAdditionalHandler.h.

Referenced by insertElement().


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