115 std::vector<std::pair<SumoXMLTag, std::pair<GNEDataInterval*, GNEGenericData*> > >
myInsertedElements;
174 const double begin,
const double end);
185 GNEEdge* edge,
const std::map<std::string, std::string>& parameters);
197 GNEEdge* fromEdge,
GNEEdge* toEdge,
const std::map<std::string, std::string>& parameters);
SumoXMLTag
Numbers representing SUMO-XML - element names.
Builds data objects for GNENet (busStops, chargingStations, detectors, etc..)
static bool parseAndBuildEdgeData(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedDatas *insertedDatas)
Parses his values and builds a edge data.
~GNEDataHandler()
Destructor.
static bool parseAndBuildTAZRelationData(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedDatas *insertedDatas)
Parses his values and builds a TAZ relation data.
HierarchyInsertedDatas myHierarchyInsertedGenericDatas
load dialog (currently disabled)
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
static bool buildData(GNENet *net, bool allowUndoRedo, SumoXMLTag tag, const SUMOSAXAttributes &attrs, HierarchyInsertedDatas *insertedDatas)
Build datas.
GNEDataHandler(const std::string &file, GNENet *net)
Constructor.
void myEndElement(int element)
Called when a closing tag occurs.
static GNEDataInterval * buildDataInterval(GNENet *net, bool allowUndoRedo, GNEDataSet *dataSetParent, const double begin, const double end)
Builds DataInterval.
static bool parseAndBuildEdgeRelationData(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedDatas *insertedDatas)
Parses his values and builds a edge relation data.
static GNEGenericData * buildTAZRelationData(GNENet *net, bool allowUndoRedo, GNEDataInterval *dataIntervalParent, GNETAZElement *fromTAZ, GNETAZElement *toTAZ, const std::map< std::string, std::string > ¶meters)
Builds TAZRelationData.
GNEDataHandler & operator=(const GNEDataHandler &s)=delete
invalidate assignment operator
static bool parseAndBuildInterval(GNENet *net, bool allowUndoRedo, const SUMOSAXAttributes &attrs, HierarchyInsertedDatas *insertedDatas)
Parses his values and builds a interval.
static GNEGenericData * buildEdgeData(GNENet *net, bool allowUndoRedo, GNEDataInterval *dataIntervalParent, GNEEdge *edge, const std::map< std::string, std::string > ¶meters)
Builds edgeData.
GNENet * myNet
pointer to net
static GNEGenericData * buildEdgeRelationData(GNENet *net, bool allowUndoRedo, GNEDataInterval *dataIntervalParent, GNEEdge *fromEdge, GNEEdge *toEdge, const std::map< std::string, std::string > ¶meters)
Builds edgeRelationData.
void parseParameter(const SUMOSAXAttributes &attrs)
Parse parameter and insert it in the last created data.
GNEDataHandler(const GNEDataHandler &s)=delete
invalidate copy constructor
static GNEDataSet * buildDataSet(GNENet *net, bool allowUndoRedo, const std::string &dataSetID)
Builds DataSet.
An Element which don't belongs to GNENet but has influency in the simulation.
~GNEDataLoadDialog()
destructor
void increase()
increase counter
GNEDataLoadDialog(GNEViewNet *viewNet)
constructor
GNEViewNet * myViewNet
pointer to viewNet
An Element which don't belongs to GNENet but has influency in the simulation.
A road/street connecting two junctions (netedit-version)
An Element which don't belongs to GNENet but has influency in the simulation.
An Element which don't belongs to GNENet but has influency in the simulation.
A NBNetBuilder extended by visualisation and editing capabilities.
An Element which don't belongs to GNENet but has influency in the simulation.
An Element which don't belongs to GNENet but has influency in the simulation.
Encapsulated SAX-Attributes.
SAX-handler base for SUMO-files.
Stack used to save the last inserted element.
void insertElement(SumoXMLTag tag)
insert new element (called only in function myStartElement)
GNEGenericData * getLastInsertedGenericData() const
return last generic data inserted
GNEDataInterval * retrieveParentDataInterval(SumoXMLTag expectedTag) const
retrieve parent generic data correspond to current status of myInsertedElements
void commitGenericDataInsertion(GNEGenericData *dataElementCreated)
commit element insertion (used to save last correct generic data element)
std::vector< std::pair< SumoXMLTag, std::pair< GNEDataInterval *, GNEGenericData * > > > myInsertedElements
vector used as stack
void commitDataIntervalInsertion(GNEDataInterval *dataIntervalCreated)
commit element insertion (used to save last correct data interval element)
void popElement()
pop last inserted element (used only in function myEndElement)
GNEGenericData * retrieveParentGenericData(SumoXMLTag expectedTag) const
retrieve parent generic data correspond to current status of myInsertedElements
GNEDataInterval * getLastInsertedDataInterval() const
return last generic data inserted