cisst-saw
|
#include <mtsCommandRead.h>
Public Types | |
typedef mtsCommandBase | BaseType |
typedef mtsCommandRead | ThisType |
typedef mtsCallableReadBase | CallableType |
Public Member Functions | |
mtsCommandRead (void) | |
mtsCommandRead (const std::string &name) | |
mtsCommandRead (mtsCallableReadBase *callable, const std::string &name, const mtsGenericObject *argumentPrototype) | |
~mtsCommandRead () | |
virtual mtsExecutionResult | Execute (mtsGenericObject &argument) |
virtual mtsExecutionResult | Execute (mtsGenericObject &argument, mtsCommandWriteBase *CMN_UNUSED(finishedEventHandler)) |
mtsCallableReadBase * | GetCallable (void) const |
virtual const mtsGenericObject * | GetArgumentPrototype (void) const |
virtual const mtsGenericObject * | GetResultPrototype (void) const |
size_t | NumberOfArguments (void) const |
bool | Returns (void) const |
void | ToStream (std::ostream &outputStream) const |
![]() | |
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 | |
mtsCallableReadBase * | Callable |
const mtsGenericObject * | ArgumentPrototype |
![]() | |
std::string | Name |
bool | EnableFlag |
A templated version of command object with one argument for execute. The template argument is the interface type whose method is contained in the command object.
Base type
Callable type
This type.
mtsCommandRead::mtsCommandRead | ( | void | ) |
The constructor. Does nothing
mtsCommandRead::mtsCommandRead | ( | const std::string & | name | ) |
mtsCommandRead::mtsCommandRead | ( | mtsCallableReadBase * | callable, |
const std::string & | name, | ||
const mtsGenericObject * | argumentPrototype | ||
) |
The constructor.
action | Pointer to the member function that is to be called by the invoker of the command |
name | A string to identify the command |
argumentPrototype | An instance of the argument being used |
mtsCommandRead::~mtsCommandRead | ( | ) |
The destructor. Does nothing
|
virtual |
The execute method. Calling the execute method from the invoker applies the operation on the receiver.
obj | The data passed to the operation method |
|
inlinevirtual |
Execute method that includes a pointer to a handler for the finished event. This is intended for derived classes (e.g., mtsCommandQueuedRead).
|
virtual |
mtsCallableReadBase* mtsCommandRead::GetCallable | ( | void | ) | const |
Get a direct pointer to the callable object. This method is used for queued commands. The caller should still use the Execute method which will queue the command. When the command is de-queued, one needs access to the callable object to call the final method or function.
|
virtual |
|
virtual |
Returns number of arguments (parameters) expected by Execute method. Must be overloaded in derived classes.
Implements mtsCommandBase.
|
virtual |
Implements mtsCommandBase.
|
virtual |
Implements mtsCommandBase.
|
protected |
|
protected |