cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Protected Attributes | List of all members
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)
 
void SetThreadSignal (osaThreadSignal *threadSignal)
 
void ThreadSignalWait (void) const
 
mtsExecutionResult WaitForResult (mtsGenericObject &arg) const
 
mtsExecutionResult WaitForResult (void) const
 

Protected Attributes

CommandTypeCommand
 
- Protected Attributes inherited from mtsFunctionBase
osaThreadSignalThreadSignal
 
mtsEventReceiverWriteCompletionCommand
 
bool IsProxy
 

Additional Inherited Members

- Protected Member Functions inherited from mtsFunctionBase
 mtsFunctionBase (const bool isProxy)
 
virtual ~mtsFunctionBase ()
 

Member Typedef Documentation

Constructor & Destructor Documentation

mtsFunctionRead::mtsFunctionRead ( void  )

Default constructor. Does nothing, use Bind before using.

virtual mtsFunctionRead::~mtsFunctionRead ( )
virtual

Destructor.

Member Function Documentation

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.
bool mtsFunctionRead::Detach ( void  )
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.

bool mtsFunctionRead::IsValid ( void  ) const
virtual

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

Implements mtsFunctionBase.

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

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

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

Overloaded operator that accepts different argument types.

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

Human readable output to stream.

Implements mtsFunctionBase.

Member Data Documentation

CommandType* mtsFunctionRead::Command
protected

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