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
mtsCallableVoidFunction Class Reference

#include <mtsCallableVoidFunction.h>

Inheritance diagram for mtsCallableVoidFunction:
mtsCallableVoidBase

Public Types

typedef mtsCallableVoidBase BaseType
 
typedef mtsCallableVoidFunction ThisType
 
typedef void(* ActionType )(void)
 

Public Member Functions

 mtsCallableVoidFunction ()
 
 mtsCallableVoidFunction (ActionType action)
 
virtual ~mtsCallableVoidFunction ()
 
mtsExecutionResult Execute (void)
 
void ToStream (std::ostream &outputStream) const
 
- Public Member Functions inherited from mtsCallableVoidBase
 mtsCallableVoidBase (void)
 
virtual ~mtsCallableVoidBase ()
 

Protected Attributes

ActionType Action
 

Detailed Description

A templated version of command object with zero arguments for execute. This command is based on a void function, i.e. it only requires a pointer on a void function.

Member Typedef Documentation

typedef void(* mtsCallableVoidFunction::ActionType)(void)

Typedef for pointer to member function

This type.

Constructor & Destructor Documentation

mtsCallableVoidFunction::mtsCallableVoidFunction ( )
inline

The constructor. Does nothing

mtsCallableVoidFunction::mtsCallableVoidFunction ( ActionType  action)
inline

The constructor.

Parameters
actionPointer to the function that is to be called by the invoker of the command
virtual mtsCallableVoidFunction::~mtsCallableVoidFunction ( )
inlinevirtual

The destructor. Does nothing

Member Function Documentation

mtsExecutionResult mtsCallableVoidFunction::Execute ( void  )
inlinevirtual

The execute method. Abstract method to be implemented by derived classes to run the actual operation on the receiver.

Implements mtsCallableVoidBase.

void mtsCallableVoidFunction::ToStream ( std::ostream &  outputStream) const
inlinevirtual

Human readable description

Implements mtsCallableVoidBase.

Member Data Documentation

ActionType mtsCallableVoidFunction::Action
protected

The pointer to function used when the command is executed.


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