Eclipse SUMO - Simulation of Urban MObility
GNEDataHandler::HierarchyInsertedDatas Struct Reference

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

#include <GNEDataHandler.h>

Public Member Functions

void commitDataIntervalInsertion (GNEDataInterval *dataIntervalCreated)
 commit element insertion (used to save last correct data interval element) More...
 
void commitGenericDataInsertion (GNEGenericData *dataElementCreated)
 commit element insertion (used to save last correct generic data element) More...
 
GNEDataIntervalgetLastInsertedDataInterval () const
 return last generic data inserted More...
 
GNEGenericDatagetLastInsertedGenericData () const
 return last generic data inserted 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...
 
GNEDataIntervalretrieveParentDataInterval (SumoXMLTag expectedTag) const
 retrieve parent generic data correspond to current status of myInsertedElements More...
 
GNEGenericDataretrieveParentGenericData (SumoXMLTag expectedTag) const
 retrieve parent generic data correspond to current status of myInsertedElements More...
 

Private Attributes

std::vector< std::pair< SumoXMLTag, std::pair< GNEDataInterval *, GNEGenericData * > > > myInsertedElements
 vector used as stack More...
 

Detailed Description

Stack used to save the last inserted element.

Definition at line 87 of file GNEDataHandler.h.

Member Function Documentation

◆ commitDataIntervalInsertion()

void GNEDataHandler::HierarchyInsertedDatas::commitDataIntervalInsertion ( GNEDataInterval dataIntervalCreated)

commit element insertion (used to save last correct data interval element)

Definition at line 92 of file GNEDataHandler.cpp.

Referenced by GNEDataHandler::parseAndBuildInterval().

Here is the caller graph for this function:

◆ commitGenericDataInsertion()

void GNEDataHandler::HierarchyInsertedDatas::commitGenericDataInsertion ( GNEGenericData dataElementCreated)

commit element insertion (used to save last correct generic data element)

Definition at line 98 of file GNEDataHandler.cpp.

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

Here is the caller graph for this function:

◆ getLastInsertedDataInterval()

GNEDataInterval * GNEDataHandler::HierarchyInsertedDatas::getLastInsertedDataInterval ( ) const

return last generic data inserted

Definition at line 132 of file GNEDataHandler.cpp.

References SUMO_TAG_INTERVAL, and SUMO_TAG_PARAM.

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

Here is the caller graph for this function:

◆ getLastInsertedGenericData()

GNEGenericData * GNEDataHandler::HierarchyInsertedDatas::getLastInsertedGenericData ( ) const

return last generic data inserted

Definition at line 165 of file GNEDataHandler.cpp.

References SUMO_TAG_INTERVAL, and SUMO_TAG_PARAM.

Referenced by GNEDataHandler::parseParameter().

Here is the caller graph for this function:

◆ insertElement()

void GNEDataHandler::HierarchyInsertedDatas::insertElement ( SumoXMLTag  tag)

insert new element (called only in function myStartElement)

Definition at line 85 of file GNEDataHandler.cpp.

References myInsertedElements.

Referenced by GNEDataHandler::myStartElement().

Here is the caller graph for this function:

◆ popElement()

void GNEDataHandler::HierarchyInsertedDatas::popElement ( )

pop last inserted element (used only in function myEndElement)

Definition at line 104 of file GNEDataHandler.cpp.

Referenced by GNEDataHandler::myEndElement().

Here is the caller graph for this function:

◆ retrieveParentDataInterval()

GNEDataInterval * GNEDataHandler::HierarchyInsertedDatas::retrieveParentDataInterval ( SumoXMLTag  expectedTag) const

retrieve parent generic data correspond to current status of myInsertedElements

Definition at line 112 of file GNEDataHandler.cpp.

References toString(), and WRITE_WARNING.

◆ retrieveParentGenericData()

GNEGenericData * GNEDataHandler::HierarchyInsertedDatas::retrieveParentGenericData ( SumoXMLTag  expectedTag) const

retrieve parent generic data correspond to current status of myInsertedElements

Definition at line 145 of file GNEDataHandler.cpp.

References toString(), and WRITE_WARNING.

Field Documentation

◆ myInsertedElements

std::vector<std::pair<SumoXMLTag, std::pair<GNEDataInterval*, GNEGenericData*> > > GNEDataHandler::HierarchyInsertedDatas::myInsertedElements
private

vector used as stack

Definition at line 115 of file GNEDataHandler.h.

Referenced by insertElement().


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