cisst-saw
|
#include <mtsCallableVoidFunction.h>
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 |
![]() | |
mtsCallableVoidBase (void) | |
virtual | ~mtsCallableVoidBase () |
Protected Attributes | |
ActionType | Action |
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.
typedef void(* mtsCallableVoidFunction::ActionType)(void) |
Typedef for pointer to member function
This type.
|
inline |
The constructor. Does nothing
|
inline |
The constructor.
action | Pointer to the function that is to be called by the invoker of the command |
|
inlinevirtual |
The destructor. Does nothing
|
inlinevirtual |
The execute method. Abstract method to be implemented by derived classes to run the actual operation on the receiver.
Implements mtsCallableVoidBase.
|
inlinevirtual |
Human readable description
Implements mtsCallableVoidBase.
|
protected |
The pointer to function used when the command is executed.