|
cisst-saw
|
#include <mtsFunctionWrite.h>
Classes | |
| class | ConditionalWrap |
| class | ConditionalWrap< _userType, true > |
Public Types | |
| typedef mtsCommandWriteBase | CommandType |
| typedef mtsExecutionResult(mtsFunctionWrite::* | ActionType )(const mtsGenericObject &) const |
Public Member Functions | |
| mtsFunctionWrite (const bool isProxy=false) | |
| virtual | ~mtsFunctionWrite () |
| bool | Detach (void) |
| bool | IsValid (void) const |
| bool | Bind (CommandType *command) |
| mtsExecutionResult | operator() (const mtsGenericObject &argument) const |
| mtsExecutionResult | ExecuteGeneric (const mtsGenericObject &argument) const |
| mtsExecutionResult | ExecuteBlockingGeneric (const mtsGenericObject &argument) const |
| template<class _userType > | |
| mtsExecutionResult | operator() (const _userType &argument) const |
| template<class _userType > | |
| mtsExecutionResult | Execute (const _userType &argument) const |
| template<class _userType > | |
| mtsExecutionResult | ExecuteBlocking (const _userType &argument) const |
| CommandType * | GetCommand (void) const |
| const mtsGenericObject * | GetArgumentPrototype (void) const |
| void | ToStream (std::ostream &outputStream) const |
Public Member Functions inherited from mtsFunctionBase | |
| virtual void | InitCompletionCommand (const std::string &name) |
| void | SetThreadSignal (osaThreadSignal *threadSignal) |
| void | ThreadSignalWait (void) const |
| mtsExecutionResult | WaitForResult (mtsGenericObject &arg) const |
| mtsExecutionResult | WaitForResult (void) const |
Protected Attributes | |
| CommandType * | Command |
Protected Attributes inherited from mtsFunctionBase | |
| osaThreadSignal * | ThreadSignal |
| mtsEventReceiverWrite * | CompletionCommand |
| bool | IsProxy |
Additional Inherited Members | |
Protected Member Functions inherited from mtsFunctionBase | |
| mtsFunctionBase (const bool isProxy) | |
| virtual | ~mtsFunctionBase () |
| typedef mtsExecutionResult(mtsFunctionWrite::* mtsFunctionWrite::ActionType)(const mtsGenericObject &) const |
| mtsFunctionWrite::mtsFunctionWrite | ( | const bool | isProxy = false | ) |
Default constructor. Does nothing, use Bind before using.
|
virtual |
Destructor.
| bool mtsFunctionWrite::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 |
|
inline |
| mtsExecutionResult mtsFunctionWrite::ExecuteBlockingGeneric | ( | const mtsGenericObject & | argument | ) | const |
| mtsExecutionResult mtsFunctionWrite::ExecuteGeneric | ( | const mtsGenericObject & | argument | ) | const |
| const mtsGenericObject* mtsFunctionWrite::GetArgumentPrototype | ( | void | ) | const |
Access to the command argument prototype.
| CommandType* mtsFunctionWrite::GetCommand | ( | void | ) | const |
Access to underlying command object.
|
virtual |
Return whether function is valid (i.e., command pointer is non-zero)
Implements mtsFunctionBase.
|
inline |
Overloaded operator to enable more intuitive syntax e.g., Command(argument) instead of Command->Execute(argument).
|
inline |
Overloaded operator that accepts different argument types.
|
virtual |
Human readable output to stream.
Implements mtsFunctionBase.
|
protected |
Internal pointer to command. Command pointer should be set when interfaces get connected.
1.8.6