|
cisst-saw
|
#include <mtsFunctionWriteReturn.h>
Public Types | |
| typedef mtsCommandWriteReturn | CommandType |
Public Member Functions | |
| mtsFunctionWriteReturn () | |
| ~mtsFunctionWriteReturn () | |
| bool | Detach (void) |
| bool | IsValid (void) const |
| bool | Bind (CommandType *command) |
| mtsExecutionResult | operator() (const mtsGenericObject &argument, mtsGenericObject &result) const |
| mtsExecutionResult | ExecuteGeneric (const mtsGenericObject &argument, mtsGenericObject &result) const |
| template<class __argumentType, class __resultType> | |
| mtsExecutionResult | operator() (const __argumentType &argument, __resultType &result) const |
| template<class __argumentType, class __resultType> | |
| mtsExecutionResult | Execute (const __argumentType &argument, __resultType &result) const |
| CommandType * | GetCommand (void) const |
| const mtsGenericObject * | GetArgumentPrototype (void) const |
| const mtsGenericObject * | GetResultPrototype (void) const |
| void | ToStream (std::ostream &outputStream) const |
| Public Member Functions inherited from mtsFunctionBase | |
| virtual void | InitCompletionCommand (const std::string &name) |
| virtual void | DeleteCompletionCommand (void) |
| void | SetThreadSignal (osaThreadSignal *threadSignal) |
| void | ThreadSignalWait (void) const |
| mtsExecutionResult | WaitForResult (void) const |
Protected Attributes | |
| CommandType * | Command |
| Protected Attributes inherited from mtsFunctionBase | |
| osaThreadSignal * | ThreadSignal |
| mtsEventReceiverWrite * | CompletionCommand |
Additional Inherited Members | |
| Protected Member Functions inherited from mtsFunctionBase | |
| mtsFunctionBase () | |
| virtual | ~mtsFunctionBase () |
| mtsFunctionWriteReturn::mtsFunctionWriteReturn | ( | ) |
Default constructor. Does nothing, use Bind before using.
| mtsFunctionWriteReturn::~mtsFunctionWriteReturn | ( | ) |
Destructor.
| bool mtsFunctionWriteReturn::Bind | ( | CommandType * | command | ) |
Bind using a command pointer. This allows to avoid querying by name from an interface.
| command | Pointer on an existing command |
|
virtual |
Detach the function from the command used. Internally, sets the command pointer to 0
Implements mtsFunctionBase.
|
inline |
| mtsExecutionResult mtsFunctionWriteReturn::ExecuteGeneric | ( | const mtsGenericObject & | argument, |
| mtsGenericObject & | result ) const |
| const mtsGenericObject * mtsFunctionWriteReturn::GetArgumentPrototype | ( | void | ) | const |
Access to the command argument prototype.
| CommandType * mtsFunctionWriteReturn::GetCommand | ( | void | ) | const |
Access to underlying command object.
| const mtsGenericObject * mtsFunctionWriteReturn::GetResultPrototype | ( | void | ) | const |
Access to the command result prototype.
|
virtual |
Return whether function is valid (i.e., command pointer is non-zero)
Implements mtsFunctionBase.
|
inline |
Overloaded operator that accepts different argument types (for write return).
|
inline |
|
virtual |
Human readable output to stream.
Implements mtsFunctionBase.
|
protected |