#include <Command.h>
Inheritance diagram for AppBase::Command< StringType >:

Public Member Functions | |
| Command () | |
| Command (const StringType &commandName) | |
| virtual | ~Command () |
| virtual void | execute ()=0 |
| execute the command. | |
| virtual void | undo ()=0 |
| undo execute() [pure virtual] | |
| virtual void | redo () |
| redo execute() [pure virtual] | |
| virtual StringType | getName () const |
| virtual void | setName (const StringType &newName) |
| virtual bool | wasSuccessful () |
Protected Member Functions | |
| virtual void | setSuccessful (bool success=true) |
Private Attributes | |
| bool | m_successful |
| StringType | m_name |
see command pattern.
Definition at line 38 of file Command.h.
|
|||||||||
|
|
|
||||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
execute the command. [pure virtual] should save information for undo(). Implemented in HuginBase::PanoCommand< StringType >, and HuginBase::PanoCommand< std::string >. Referenced by CommandHistory::addCommand(), and CommandHistory::redo(). |
|
|||||||||
|
|||||||||
|
redo execute() [pure virtual] for special optimisation; the default implementation calls execute(); Reimplemented in HuginBase::PanoCommand< StringType >, and HuginBase::PanoCommand< std::string >. |
|
||||||||||
|
|
|
||||||||||
|
Definition at line 95 of file Command.h. Referenced by HuginBase::PanoCommand< std::string >::execute(). |
|
|||||||||
|
undo execute() [pure virtual] must restore the model to the state before execute(). execute() may be called later to redo the undo. Implemented in HuginBase::PanoCommand< StringType >, and HuginBase::PanoCommand< std::string >. Referenced by CommandHistory::undo(). |
|
|||||||||
|
|
|
|||||
|
|
|
|||||
|
|
1.3.9.1