37 GNEChange(forward, dataInterval->isAttributeCarrierSelected()),
38 myDataInterval(dataInterval),
39 myDataSetParent(dataInterval->getDataSetParent()) {
40 myDataInterval->incRef(
"GNEChange_DataInterval");
@ SUMO_ATTR_BEGIN
weights: time range begin
@ SUMO_ATTR_END
weights: time range end
const std::string & getTagStr() const
get tag assigned to this object in string format
GNENet * getNet() const
get pointer to net
GNEDataInterval * myDataInterval
full information regarding the data interval element that is to be created/deleted
~GNEChange_DataInterval()
Destructor.
GNEDataSet * myDataSetParent
pointer to data set parent
FXString undoName() const
return undoName
FXString redoName() const
get Redo name
the function-object for an editing operation (abstract base)
bool myForward
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag
An Element which don't belongs to GNENet but has influency in the simulation.
std::string getAttribute(SumoXMLAttr key) const
GNEDataSet * getDataSetParent() const
Returns a pointer to GNEDataSet parent.
bool dataIntervalChildrenExist(GNEDataInterval *dataInterval) const
check if given data interval exist
void removeDataIntervalChild(GNEDataInterval *dataInterval)
add data interval child
void addDataIntervalChild(GNEDataInterval *dataInterval)
add data interval child
bool dataSetExist(const GNEDataSet *dataSet) const
return true if given demand element exist
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
retrieve all attribute carriers of Net
void requireSaveDataElements(bool value)
inform that data sets has to be saved
void decRef(const std::string &debugMsg="")
Decrease reference.
bool unreferenced()
check if object ins't referenced