#include <MacroCommand.h>
Public Member Functions | |
virtual Command::PtrType | copy () const |
virtual std::string | getName () const |
virtual bool | wasExecuted () const |
virtual double | getProgress () const |
void | attach (Command::PtrType pCommand) |
void | detach (Command::PtrType pCommand) |
virtual PtrType | copy () const =0 |
virtual std::string | getName () const =0 |
virtual bool | wasExecuted () const |
virtual double | getProgress () const |
Static Public Member Functions | |
static PtrType | create (const std::string &strName) |
This class provides functionality for defining macro commands. Macro commands are a list of other commands. These commands can also be MacroCommands. The order of the list is the same as the execution order.
void ARSTD::MacroCommand::attach | ( | Command::PtrType | pCommand | ) |
Attaches a command or MacroCommand.
pCommand | The command that should be attached. |
|
virtual |
|
static |
Creates a new MacroCommand.
strName | The name of the MacroCommand. |
void ARSTD::MacroCommand::detach | ( | Command::PtrType | pCommand | ) |
Detaches a command or MacroCommand.
pCommand | The command that should be detached. |
|
virtual |
|
virtual |
Returns the progress of command execution.
Reimplemented from ARSTD::Command.
|
virtual |
Returns whether the command was already executed.
Reimplemented from ARSTD::Command.