38 myOriginalAttributes(originalAttributes),
39 myNewAttributes(newAttributes) {
40 myAC->incRef(
"GNEChange_EnableAttribute " + myAC->getTagProperty().getTagStr());
93 return (
"Undo change " +
myAC->
getTagStr() +
" attribute").c_str();
99 return (
"Redo change " +
myAC->
getTagStr() +
" attribute").c_str();
virtual void setEnabledAttribute(const int enabledAttributes)=0
method for enabling the attribute and nothing else (used in GNEChange_EnableAttribute)
virtual const std::string & getID() const =0
return ID of object
const std::string & getTagStr() const
get tag assigned to this object in string format
const GNETagProperties & getTagProperty() const
get Tag Property assigned to this object
GNENet * getNet() const
get pointer to net
the function-object for an editing operation (abstract base)
GNEAttributeCarrier * myAC
the net to which all operations shall be applied
~GNEChange_EnableAttribute()
Destructor.
const int myNewAttributes
original attributes
FXString undoName() const
return undoName
FXString redoName() const
get Redo name
const int myOriginalAttributes
original attributes
the function-object for an editing operation (abstract base)
void requireSaveNet(bool value)
inform that net has to be saved
void requireSaveAdditionals(bool value)
inform that additionals has to be saved
void requireSaveDemandElements(bool value)
inform that demand elements has to be saved
void decRef(const std::string &debugMsg="")
Decrease reference.
bool unreferenced()
check if object ins't referenced
bool isShape() const
return true if tag correspond to a shape
const std::string & getTagStr() const
get Tag vinculated with this attribute Property in String Format (used to avoid multiple calls to toS...
bool isNetworkElement() const
return true if tag correspond to a network element
bool isDemandElement() const
return true if tag correspond to a demand element
bool isAdditionalElement() const
return true if tag correspond to an additional element