|
cisst-saw
|
#include <mtsCommandBase.h>
Public Member Functions | |
| mtsCommandBase (void) | |
| mtsCommandBase (const std::string &name) | |
| virtual | ~mtsCommandBase () |
| virtual std::string | ToString (void) const |
| virtual void | ToStream (std::ostream &outputStream) const =0 |
| virtual size_t | NumberOfArguments (void) const =0 |
| virtual bool | Returns (void) const =0 |
| void | Enable (void) |
| void | Disable (void) |
| bool | IsEnabled (void) const |
| bool | IsDisabled (void) const |
| const std::string & | GetName (void) const |
Protected Attributes | |
| std::string | Name |
| bool | EnableFlag |
|
inline |
The constructor. Does nothing
|
inline |
Constructor with command name.
|
inlinevirtual |
The destructor. Does nothing
|
inline |
|
inline |
Set and access the "enable" flag. This flag is used to determine if the command actually uses the provided method or function when it is executed.
|
inline |
Get the command name. This method doesn't allow to change the command name.
|
inline |
|
inline |
|
pure virtual |
Returns number of arguments (parameters) expected by Execute method. Must be overloaded in derived classes.
Implemented in mtsCommandQualifiedRead, mtsCommandRead, mtsCommandVoid, mtsCommandVoidReturn, mtsCommandWriteBase, and mtsCommandWriteReturn.
|
pure virtual |
Implemented in mtsCommandQualifiedRead, mtsCommandRead, mtsCommandVoid, mtsCommandVoidReturn, mtsCommandWriteBase, and mtsCommandWriteReturn.
|
pure virtual |
Implemented in mtsCommandFilteredWrite, mtsCommandQualifiedRead, mtsCommandQueuedVoid, mtsCommandQueuedVoidReturnBase< mtsCommandRead >, mtsCommandQueuedVoidReturnBase< mtsCommandVoidReturn >, mtsCommandQueuedWriteBase, mtsCommandQueuedWriteGeneric, mtsCommandQueuedWriteReturnBase< mtsCommandQualifiedRead >, mtsCommandQueuedWriteReturnBase< mtsCommandWriteReturn >, mtsCommandRead, mtsCommandVoid, mtsCommandVoidReturn, mtsCommandWrite< _classType, _argumentType >, mtsCommandWrite< ClassType, ArgumentType >, mtsCommandWriteGeneric< _classType >, mtsCommandWriteGeneric< ClassType >, mtsCommandWriteReturn, mtsMulticastCommandVoid, and mtsMulticastCommandWriteBase.
|
inlinevirtual |
For debugging. Generate a human readable output for the command object
|
protected |
Flag used to determine is the command actually executes the provided method or function. This "gated" command can be useful to turn on/off and event callback or to prevent calling a method owned by an object being deleted.
|
protected |
Name used for the command. The name is provided to the constructor and can be accessed using the method GetName().