34 #ifdef CHECK_MEMORY_LEAKS 50 const std::
string& value,
52 const std::
string& origValue) :
56 myOrigValue(customOrigValue ? origValue : ac->getAttribute(key)),
58 myAC->incRef(
"GNEChange_Attribute " +
toString(myKey));
the function-object for an editing operation (abstract base)
SumoXMLAttr myKey
The attribute name.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
virtual void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
FXString redoName() const
the function-object for an editing operation (abstract base)
std::string myNewValue
the original value
~GNEChange_Attribute()
Destructor.
std::string toString(const T &t, std::streamsize accuracy=OUTPUT_ACCURACY)
void decRef(const std::string &debugMsg="")
GNEAttributeCarrier * myAC
the net to which all operations shall be applied (we are not responsible for the pointer) ...
virtual std::string getDescription()
how should this attribute carrier be called
FXString undoName() const
std::string myOrigValue
the original value