52 bool customOrigValue, const std::
string& origValue) :
56 myOrigValue(customOrigValue ? origValue : ac->getAttribute(key)),
60 myAC->incRef(
"GNEChange_Attribute " +
toString(myKey));
63 myShape =
dynamic_cast<GNEShape*
>(myAC);
void requiereSaveAdditionals()
inform that additionals has to be saved
the function-object for an editing operation (abstract base)
SumoXMLAttr myKey
The attribute name.
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
virtual void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
FXString redoName() const
get Redo name
#define WRITE_WARNING(msg)
static OptionsCont & getOptions()
Retrieves the options.
the function-object for an editing operation (abstract base)
bool trueChange()
wether original and new value differ
GNEViewNet * getViewNet() const
Returns a pointer to GNEViewNet in which additional element is located.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
std::string myNewValue
the original value
~GNEChange_Attribute()
Destructor.
GNENet * getNet() const
get Net in which this element is placed
GNEAdditional * myAdditional
used if Ac is an additional element
const std::string getID() const
function to support debugging
void decRef(const std::string &debugMsg="")
Decrease reference.
An Element which don't belongs to GNENet but has influency in the simulation.
GNEAttributeCarrier * myAC
the net to which all operations shall be applied
GNEShape * myShape
used if Ac is a shape element
GNENet * getNet() const
get the net object
SumoXMLTag getTag() const
get XML Tag assigned to this object
void requiereSaveShapes()
inform that shapes has to be saved
FXString undoName() const
return undoName
std::string myOrigValue
the original value
bool unreferenced()
check if object ins't referenced