51 bool customOrigValue, const std::
string& origValue) :
55 myOrigValue(customOrigValue ? origValue : ac->getAttribute(key)),
59 myAC->incRef(
"GNEChange_Attribute " +
toString(myKey));
62 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.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
begin/end of the description of a Point of interest
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
virtual void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
#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
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
std::string myNewValue
the original value
~GNEChange_Attribute()
Destructor.
virtual bool removePolygon(const std::string &id)
Removes a polygon from the container.
FXString undoName() const
return undoName
virtual bool removePOI(const std::string &id)
Removes a PoI from the container.
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.
GNEViewNet * getViewNet() const
Returns a pointer to GNEViewNet in which additional element is located.
GNENet * getNet() const
get Net in which this element is placed
An Element which don't belongs to GNENet but has influency in the simulation.
FXString redoName() const
get Redo name
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
void requiereSaveShapes()
inform that shapes has to be saved
std::string myOrigValue
the original value
begin/end of the description of a Point of interest over Lane (used by Netedit)
bool unreferenced()
check if object ins't referenced
begin/end of the description of a polygon
SumoXMLTag getTag() const
get XML Tag assigned to this object