cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
mtsFunctionVoid Class Reference

#include <mtsFunctionVoid.h>

Inheritance diagram for mtsFunctionVoid:
mtsFunctionBase

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
 
mtsCommandVoidGetCommand (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

mtsFunctionVoid::mtsFunctionVoid ( const bool  isProxy = false)

Default constructor. Does nothing, use Bind before using.

mtsFunctionVoid::~mtsFunctionVoid ( )

Destructor.

Member Function Documentation

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

bool mtsFunctionVoid::IsValid ( void  ) const
virtual

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

Implements mtsFunctionBase.

mtsExecutionResult mtsFunctionVoid::operator() ( void  ) const
inline

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

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

Human readable output to stream.

Implements mtsFunctionBase.

Member Data Documentation

CommandType* mtsFunctionVoid::Command
protected

Internal pointer to command. Command pointer should be set when interfaces get connected.


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