37 #ifdef CHECK_MEMORY_LEAKS 58 myForceInsert(forceInsert) {
59 myJunction->incRef(
"GNEChange_TLS");
64 myTlDef =
new NBOwnTLDef(tlID ==
"" ? myJunction->getMicrosimID() : tlID, 0, type);
98 return (
"Undo create traffic light");
100 return (
"Undo delete traffic light");
107 return (
"Redo create traffic light");
109 return (
"Redo delete traffic light");
the function-object for an editing operation (abstract base)
The base class for traffic light logic definitions.
bool myForceInsert
check if forceInsert is enabled
NBTrafficLightDefinition * myTlDef
~GNEChange_TLS()
Destructor.
void removeTrafficLight(NBTrafficLightDefinition *tlDef)
removes a traffic light
static OptionsCont & getOptions()
Retrieves the options.
static StringBijection< TrafficLightType > TrafficLightTypes
T get(const std::string &str) const
void decRef(const std::string &debugMsg="")
bool myForward
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag ...
A traffic light logics which must be computed (only nodes/edges are given)
void addTrafficLight(NBTrafficLightDefinition *tlDef, bool forceInsert)
adds a traffic light
FXString undoName() const
return undoName
FXString redoName() const
get Redo name