41 myDescription(description),
42 myGroupSupermode(groupSupermode),
48 const auto time = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
50 const auto local_time = *localtime(&time);
52 myTimeStamp =
toString(local_time.tm_hour) +
":" +
53 ((local_time.tm_min <= 9) ?
"0" :
"") +
toString(local_time.tm_min) +
":" +
54 ((local_time.tm_sec <= 9) ?
"0" :
"") +
toString(local_time.tm_sec);
146 for (change =
undoList; change; change = change->
next) {
147 result += change->
size();
149 for (change =
redoList; change; change = change->
next) {
150 result += change->
size();
Supermode
@brie enum for supermodes
@ NETWORK
Network mode (Edges, junctions, etc..)
GUIIcon
An enumeration of icons used by the gui applications.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
GNEChange * undoList
undo list command (can be access by GNEUndoList)
const std::string myDescription
description of command
const Supermode myGroupSupermode
supermode associated with this ChangeGroup
const std::string & getTimeStamp()
get timeStamp
GUIIcon getGroupIcon() const
get icon associated with this ChangeGroup
std::string undoName() const
get undo Name
GNEChange * redoList
redo list command (can be access by GNEUndoList)
GNEChangeGroup * group
group (can be access by GNEUndoList)
int size() const
Return the size of the command group.
const GUIIcon myIcon
icon associated with this ChangeGroup
std::string redoName() const
get redo name
bool empty() const
Return TRUE if empty.
std::string myTimeStamp
timeStamp HH:MM:SS
const std::string & getDescription()
get description
Supermode getGroupSupermode() const
get supermode associated with this ChangeGroup
void redo()
Redo whole command group.
void undo()
Undo whole command group.
GNEChangeGroup()
FOX need this.
~GNEChangeGroup()
Delete undo command and sub-commands.
the function-object for an editing operation (abstract base)
virtual void redo()=0
redo action/operation
virtual int size() const
Return the size of the command group.
virtual void undo()=0
undo action/operation