#include <mtsFunctionQualifiedRead.h>
mtsFunctionQualifiedRead::mtsFunctionQualifiedRead |
( |
void |
| ) |
|
Default constructor. Does nothing, use Bind before using.
mtsFunctionQualifiedRead::~mtsFunctionQualifiedRead |
( |
| ) |
|
bool mtsFunctionQualifiedRead::Bind |
( |
CommandType * |
command | ) |
|
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 mtsFunctionQualifiedRead::Detach |
( |
void |
| ) |
|
|
virtual |
Detach the function from the command used. Internally, sets the command pointer to 0
Implements mtsFunctionBase.
template<class _userType1 , class _userType2 >
mtsExecutionResult mtsFunctionQualifiedRead::Execute |
( |
const _userType1 & |
argument1, |
|
|
_userType2 & |
argument2 |
|
) |
| const |
|
inline |
const mtsGenericObject* mtsFunctionQualifiedRead::GetArgument1Prototype |
( |
void |
| ) |
const |
Access to the command argument 1 prototype.
const mtsGenericObject* mtsFunctionQualifiedRead::GetArgument2Prototype |
( |
void |
| ) |
const |
Access to the command argument 2 prototype.
CommandType* mtsFunctionQualifiedRead::GetCommand |
( |
void |
| ) |
const |
Access to underlying command object.
bool mtsFunctionQualifiedRead::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(argument) instead of Command->Execute(argument).
template<class _userType1 , class _userType2 >
mtsExecutionResult mtsFunctionQualifiedRead::operator() |
( |
const _userType1 & |
argument1, |
|
|
_userType2 & |
argument2 |
|
) |
| const |
|
inline |
Overloaded operator that accepts different argument types (for qualified read).
void mtsFunctionQualifiedRead::ToStream |
( |
std::ostream & |
outputStream | ) |
const |
|
virtual |
The documentation for this class was generated from the following file: