cisst-saw
|
#include <mtsCommandWriteBase.h>
Public Types | |
typedef mtsCommandBase | BaseType |
Public Member Functions | |
mtsCommandWriteBase (void) | |
mtsCommandWriteBase (const std::string &name) | |
virtual | ~mtsCommandWriteBase () |
virtual mtsExecutionResult | Execute (const mtsGenericObject &argument, mtsBlockingType blocking)=0 |
virtual mtsExecutionResult | Execute (const mtsGenericObject &argument, mtsBlockingType blocking, mtsCommandWriteBase *CMN_UNUSED(finishedEventHandler))=0 |
size_t | NumberOfArguments (void) const |
bool | Returns (void) const |
virtual const mtsGenericObject * | GetArgumentPrototype (void) const |
const cmnClassServicesBase * | GetArgumentClassServices (void) const |
![]() | |
mtsCommandBase (void) | |
mtsCommandBase (const std::string &name) | |
virtual | ~mtsCommandBase () |
const std::string & | GetName (void) const |
virtual std::string | ToString (void) const |
virtual void | ToStream (std::ostream &outputStream) const =0 |
void | Enable (void) |
void | Disable (void) |
bool | IsEnabled (void) const |
bool | IsDisabled (void) const |
Protected Member Functions | |
virtual void | SetArgumentPrototype (const mtsGenericObject *argumentPrototype) |
Protected Attributes | |
const mtsGenericObject * | ArgumentPrototype |
![]() | |
std::string | Name |
bool | EnableFlag |
Friends | |
class | mtsMulticastCommandWriteBase |
class | mtsCommandQueuedWriteGeneric |
A base class of command object with an execute method that takes one argument.
|
inline |
The constructor. Does nothing
|
inline |
|
inlinevirtual |
The destructor. Does nothing
|
pure virtual |
The execute method. Abstract method to be implemented by derived classes to run the actual operation on the receiver
argument | The data passed to the operation method |
blocking | Indicates whether caller wishes to block until command finishes |
Implemented in mtsCommandQueuedWriteBase, mtsMulticastCommandWriteBase, and mtsCommandFilteredWrite.
|
pure virtual |
The execute method. Method may be implemented by derived classes to run the actual operation on the receiver
argument | The data passed to the operation method |
blocking | Indicates whether caller wishes to block until command finishes |
finishedEventHandler | Command object to invoke when blocking command is finished |
Implemented in mtsCommandWriteGeneric< _classType >, mtsCommandWrite< _classType, _argumentType >, mtsMulticastCommandWriteGeneric, mtsMulticastCommandWrite< _argumentType >, and mtsCommandFilteredWrite.
|
inline |
Return const pointer of class services associated to the argument type.
|
inlinevirtual |
Return a pointer on the argument prototype
Reimplemented in mtsCommandQueuedWriteGeneric, mtsCommandQueuedWrite< _argumentType >, mtsCommandFilteredWrite, and mtsCommandFilteredQueuedWrite.
|
inlinevirtual |
Returns number of arguments (parameters) expected by Execute method. Must be overloaded in derived classes.
Implements mtsCommandBase.
|
inlinevirtual |
Implements mtsCommandBase.
|
inlineprotectedvirtual |
Reimplemented in mtsCommandQueuedWriteGeneric.
|
friend |
|
friend |
|
protected |