CommandExecutor — The base class for the document Command exector.
class CommandExecutor : : public SimpleWrappedObjectSernaApi::SimpleWrappedObject { public: // construct/copy/destruct CommandExecutor(SernaApiBase * = 0); ~CommandExecutor(); // public member functions Command executeAndAdd(const Command &) ; Command undo() ; Command redo() ; bool isModified() const; Command lastDone() const; Command firstChild() const; Command lastChild() const; Command getChild(int) const; int countChildren() const; void appendChild(const Command &) ; void removeAllChildren() ; };
CommandExecutor
public member functionsCommand executeAndAdd(const Command & command) ;
Executes command and adds it to undo/redo stack.
Command undo() ;
Undo (unexecute) the command.
Command redo() ;
Redo (re-execute) the command.
Checks if there are any executed/added commands.
Command lastDone() const;
Returns last executed command.
Command firstChild() const;
Command lastChild() const;
Command getChild(int n) const;