#include <mtsFunctionVoid.h>
mtsFunctionVoid::mtsFunctionVoid |
( |
const bool |
isProxy = false | ) |
|
Default constructor. Does nothing, use Bind before using.
mtsFunctionVoid::~mtsFunctionVoid |
( |
| ) |
|
Bind using a command pointer. This allows to avoid querying by name from an interface.
- Parameters
-
command | Pointer on an existing command |
- Returns
- Boolean value, true if the command pointer is not null.
bool mtsFunctionVoid::Detach |
( |
void |
| ) |
|
|
virtual |
Detach the function from the command used. Internally, sets the command pointer to 0
Implements mtsFunctionBase.
Access to underlying command object.
bool mtsFunctionVoid::IsValid |
( |
void |
| ) |
const |
|
virtual |
Return whether function is valid (i.e., command pointer is non-zero)
Implements mtsFunctionBase.
Overloaded operator to enable more intuitive syntax e.g., Command() instead of Command->Execute().
void mtsFunctionVoid::ToStream |
( |
std::ostream & |
outputStream | ) |
const |
|
virtual |
Internal pointer to command. Command pointer should be set when interfaces get connected.
The documentation for this class was generated from the following file: