cisst-saw
Loading...
Searching...
No Matches
mtsFunctionRead Class Reference

#include <mtsFunctionRead.h>

Inheritance diagram for mtsFunctionRead:
mtsFunctionBase

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
CommandTypeGetCommand (void) const
const mtsGenericObjectGetArgumentPrototype (void) const
void ToStream (std::ostream &outputStream) const
Public Member Functions inherited from mtsFunctionBase
virtual void InitCompletionCommand (const std::string &name)
virtual void DeleteCompletionCommand (void)
void SetThreadSignal (osaThreadSignal *threadSignal)
void ThreadSignalWait (void) const
mtsExecutionResult WaitForResult (void) const

Protected Attributes

CommandTypeCommand
Protected Attributes inherited from mtsFunctionBase
osaThreadSignalThreadSignal
mtsEventReceiverWriteCompletionCommand

Additional Inherited Members

Protected Member Functions inherited from mtsFunctionBase
 mtsFunctionBase ()
virtual ~mtsFunctionBase ()

Member Typedef Documentation

◆ CommandType

Constructor & Destructor Documentation

◆ mtsFunctionRead()

mtsFunctionRead::mtsFunctionRead ( void )

Default constructor. Does nothing, use Bind before using.

◆ ~mtsFunctionRead()

virtual mtsFunctionRead::~mtsFunctionRead ( )
virtual

Destructor.

Member Function Documentation

◆ Bind()

bool mtsFunctionRead::Bind ( CommandType * command)

Bind using a command pointer. This allows to avoid querying by name from an interface.

Parameters
commandPointer on an existing command
Returns
Boolean value, true if the command pointer is not null.

◆ Detach()

bool mtsFunctionRead::Detach ( void )
virtual

Detach the function from the command used. Internally, sets the command pointer to 0

Implements mtsFunctionBase.

◆ ExecuteGeneric()

mtsExecutionResult mtsFunctionRead::ExecuteGeneric ( mtsGenericObject & argument) const

◆ GetArgumentPrototype()

const mtsGenericObject * mtsFunctionRead::GetArgumentPrototype ( void ) const

Access to the command argument prototype.

◆ GetCommand()

CommandType * mtsFunctionRead::GetCommand ( void ) const

Access to underlying command object.

◆ IsValid()

bool mtsFunctionRead::IsValid ( void ) const
virtual

Return whether function is valid (i.e., command pointer is non-zero)

Implements mtsFunctionBase.

◆ operator()() [1/2]

template<class _userType>
mtsExecutionResult mtsFunctionRead::operator() ( _userType & argument) const
inline

Overloaded operator that accepts different argument types.

◆ operator()() [2/2]

mtsExecutionResult mtsFunctionRead::operator() ( mtsGenericObject & argument) const
inline

Overloaded operator to enable more intuitive syntax e.g., Command(argument) instead of Command->Execute(argument).

◆ ToStream()

void mtsFunctionRead::ToStream ( std::ostream & outputStream) const
virtual

Human readable output to stream.

Implements mtsFunctionBase.

Member Data Documentation

◆ Command

CommandType* mtsFunctionRead::Command
protected

The documentation for this class was generated from the following file: