|
cisst-saw
|
#include <mtsMulticastCommandVoid.h>
Public Types | |
| typedef mtsCommandVoid | BaseType |
| typedef std::vector< BaseType * > | VectorType |
Public Types inherited from mtsCommandVoid | |
| typedef mtsCommandBase | BaseType |
| typedef mtsCommandVoid | ThisType |
Public Member Functions | |
| mtsMulticastCommandVoid (const std::string &name) | |
| ~mtsMulticastCommandVoid () | |
| virtual bool | AddCommand (BaseType *command) |
| virtual bool | RemoveCommand (BaseType *command) |
| virtual mtsExecutionResult | Execute (mtsBlockingType CMN_UNUSED(blocking)) |
| virtual void | ToStream (std::ostream &outputStream) const |
Public Member Functions inherited from mtsCommandVoid | |
| mtsCommandVoid (void) | |
| mtsCommandVoid (mtsCallableVoidBase *callable, const std::string &name) | |
| virtual | ~mtsCommandVoid () |
| virtual mtsExecutionResult | Execute (mtsBlockingType blocking, mtsCommandWriteBase *CMN_UNUSED(finishedEventHandler)) |
| mtsCallableVoidBase * | GetCallable (void) const |
| size_t | NumberOfArguments (void) const |
| bool | Returns (void) const |
Public Member Functions inherited from mtsCommandBase | |
| mtsCommandBase (void) | |
| mtsCommandBase (const std::string &name) | |
| virtual | ~mtsCommandBase () |
| const std::string & | GetName (void) const |
| virtual std::string | ToString (void) const |
| void | Enable (void) |
| void | Disable (void) |
| bool | IsEnabled (void) const |
| bool | IsDisabled (void) const |
Protected Attributes | |
| VectorType | Commands |
Protected Attributes inherited from mtsCommandVoid | |
| mtsCallableVoidBase * | Callable |
Protected Attributes inherited from mtsCommandBase | |
| std::string | Name |
| bool | EnableFlag |
This class contains a vector of two or more command objects. Currently it is used by composite interface, where the command needs to be chained, such that it is executed on more than one interface. This is the no argument version, that is the execute method takes no argument.
| typedef std::vector<BaseType *> mtsMulticastCommandVoid::VectorType |
| mtsMulticastCommandVoid::mtsMulticastCommandVoid | ( | const std::string & | name | ) |
Default constructor. Does nothing.
| mtsMulticastCommandVoid::~mtsMulticastCommandVoid | ( | ) |
Default destructor. Does nothing.
|
virtual |
Add a command to the composite.
|
virtual |
Execute all the commands in the composite.
Reimplemented from mtsCommandVoid.
|
virtual |
Remove a command from the composite.
|
virtual |
Reimplemented from mtsCommandVoid.
|
protected |
Vector to commands that constitute the composite command.
1.8.6