#include <Command.hpp>
Inheritance diagram for corelinux::Command:
Public Member Functions | |
Command (void) | |
Default Constructor. | |
Command (CommandCref) | |
Copy constructor. | |
Command (AbstractCommandPtr) | |
Constructor with reverse command. | |
virtual | ~Command (void) |
Virtual Destructor. | |
CommandRef | operator= (CommandCref) |
Assignment operator. | |
bool | operator== (CommandCref) const |
Equality operator. | |
virtual AbstractCommandPtr | getReverseCommand (void) const |
Retrieves the reverse command. | |
virtual void | setReverseCommand (AbstractCommandPtr) |
Sets the reverse command pointer to be used by the executeReverse call. | |
virtual void | executeReverse (void) |
If theReverseCommand is not null, call its execute method. | |
Protected Attributes | |
AbstractCommandPtr | theReverseCommand |
The infamous reverse command. |
It adds the reverse execution interface along with the storage for the AbstractCommand that is considered the reverse.
AbstractCommandPtr corelinux::Command::getReverseCommand | ( | void | ) | const [virtual] |
void corelinux::Command::setReverseCommand | ( | AbstractCommandPtr | ) | [virtual] |
Sets the reverse command pointer to be used by the executeReverse call.
AbstractCommand | pointer to valid command or NULLPTR |