cisst-saw
|
#include <mtsFunctionRead.h>
Classes | |
class | ConditionalWrap |
class | ConditionalWrap< _userType, true > |
Public Types | |
typedef mtsCommandRead | CommandType |
Public Member Functions | |
mtsFunctionRead (void) | |
virtual | ~mtsFunctionRead () |
bool | Detach (void) |
bool | IsValid (void) const |
bool | Bind (CommandType *command) |
mtsExecutionResult | operator() (mtsGenericObject &argument) const |
mtsExecutionResult | ExecuteGeneric (mtsGenericObject &argument) const |
template<class _userType > | |
mtsExecutionResult | operator() (_userType &argument) const |
CommandType * | GetCommand (void) const |
const mtsGenericObject * | GetArgumentPrototype (void) const |
void | ToStream (std::ostream &outputStream) const |
![]() | |
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 |
![]() | |
osaThreadSignal * | ThreadSignal |
mtsEventReceiverWrite * | CompletionCommand |
bool | IsProxy |
Additional Inherited Members | |
![]() | |
mtsFunctionBase (const bool isProxy) | |
virtual | ~mtsFunctionBase () |
mtsFunctionRead::mtsFunctionRead | ( | void | ) |
Default constructor. Does nothing, use Bind before using.
|
virtual |
Destructor.
bool mtsFunctionRead::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.
mtsExecutionResult mtsFunctionRead::ExecuteGeneric | ( | mtsGenericObject & | argument | ) | const |
const mtsGenericObject* mtsFunctionRead::GetArgumentPrototype | ( | void | ) | const |
Access to the command argument prototype.
CommandType* mtsFunctionRead::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 |