|
cisst-saw
|
#include <mtsFunctionVoid.h>
Public Types | |
| typedef mtsCommandVoid | CommandType |
Public Member Functions | |
| mtsFunctionVoid (const bool isProxy=false) | |
| ~mtsFunctionVoid () | |
| bool | Detach (void) |
| bool | IsValid (void) const |
| bool | Bind (CommandType *command) |
| mtsExecutionResult | operator() (void) const |
| mtsExecutionResult | Execute (void) const |
| mtsExecutionResult | ExecuteBlocking (void) const |
| mtsCommandVoid * | GetCommand (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 () |
| mtsFunctionVoid::mtsFunctionVoid | ( | const bool | isProxy = false | ) |
Default constructor. Does nothing, use Bind before using.
| mtsFunctionVoid::~mtsFunctionVoid | ( | ) |
Destructor.
| bool mtsFunctionVoid::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 mtsFunctionVoid::Execute | ( | void | ) | const |
Non-blocking call
| mtsExecutionResult mtsFunctionVoid::ExecuteBlocking | ( | void | ) | const |
Blocking call
| mtsCommandVoid* mtsFunctionVoid::GetCommand | ( | void | ) | const |
Access to underlying command object.
|
virtual |
Return whether function is valid (i.e., command pointer is non-zero)
Implements mtsFunctionBase.
|
inline |
|
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