45 myGenericData(genericData),
46 myDataSetParent(genericData->getDataIntervalParent()->getDataSetParent()),
47 myDataIntervalParent(genericData->getDataIntervalParent()) {
48 myGenericData->incRef(
"GNEChange_GenericData");
Supermode
@brie enum for supermodes
@ DATA
Data mode (edgeData, LaneData etc..)
bool isUndoRedoAllowed() const
const std::string getID() const
get ID (all Attribute Carriers have one)
const std::string & getTagStr() const
get tag assigned to this object in string format
void unselectAttributeCarrier(const bool changeFlag=true)
unselect attribute carrier using GUIGlobalSelection
GNENet * getNet() const
get pointer to net
void selectAttributeCarrier(const bool changeFlag=true)
select attribute carrier using GUIGlobalSelection
std::string undoName() const
return undoName
GNEGenericData * myGenericData
full information regarding the generic data set that is to be created/deleted
std::string redoName() const
get Redo name
GNEDataInterval * myDataIntervalParent
data interval parent
~GNEChange_GenericData()
Destructor.
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
const bool mySelectedElement
flag for check if element is selected
void addElementInParentsAndChildren(T *element)
add given element into parents and children (only use in redo() function)
void removeElementFromParentsAndChildren(T *element)
remove given element from parents and children (only use in redo() function)
void restoreHierarchicalContainers()
restore container (only use in undo() function)
void removeGenericDataChild(GNEGenericData *genericData)
add generic data child
void addGenericDataChild(GNEGenericData *genericData)
add generic data child
An Element which don't belong to GNENet but has influence in the simulation.
GNEDataInterval * retrieveDataInterval(const GNEAttributeCarrier *AC, bool hardFail=true) const
Returns the data interval.
GNEGenericData * retrieveGenericData(const GUIGlObject *glObject, bool hardFail=true) const
Returns the generic data.
void requireSaveDataElements()
inform that data elements has to be saved
GNENetHelper::SavingStatus * getSavingStatus() const
get saving status
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
get all attribute carriers used in this net
GNEViewNet * getViewNet() const
get view net
void decRef(const std::string &debugMsg="")
Decrease reference.
bool unreferenced()
check if object ins't referenced
GNEViewParent * getViewParent() const
get the net object
GNEApplicationWindow * getGNEAppWindows() const
get GNE Application Windows