|
cisst-saw
|
#include <mtsCommandWrite.h>
Classes | |
| class | ConditionalCast |
| class | ConditionalCast< true, dummy > |
Public Types | |
| typedef _argumentType | ArgumentType |
| typedef mtsCommandWriteBase | BaseType |
| typedef _classType | ClassType |
| typedef mtsCommandWrite < ClassType, ArgumentType > | ThisType |
| typedef void(_classType::* | ActionType )(const ArgumentType &) |
Public Types inherited from mtsCommandWriteBase | |
| typedef mtsCommandBase | BaseType |
Public Member Functions | |
| mtsCommandWrite (ActionType action, ClassType *classInstantiation, const std::string &name, const ArgumentType &argumentPrototype) | |
| virtual | ~mtsCommandWrite () |
| mtsExecutionResult | Execute (const mtsGenericObject &argument, mtsBlockingType CMN_UNUSED(blocking)) |
| mtsExecutionResult | Execute (const ArgumentType &argument, mtsBlockingType CMN_UNUSED(blocking)) |
| mtsExecutionResult | Execute (const mtsGenericObject &argument, mtsBlockingType blocking, mtsCommandWriteBase *CMN_UNUSED(finishedEventHandler)) |
| virtual void | ToStream (std::ostream &outputStream) const |
Public Member Functions inherited from mtsCommandWriteBase | |
| mtsCommandWriteBase (void) | |
| mtsCommandWriteBase (const std::string &name) | |
| virtual | ~mtsCommandWriteBase () |
| virtual mtsExecutionResult | Execute (const mtsGenericObject &argument, mtsBlockingType blocking)=0 |
| size_t | NumberOfArguments (void) const |
| bool | Returns (void) const |
| virtual const mtsGenericObject * | GetArgumentPrototype (void) const |
| const cmnClassServicesBase * | GetArgumentClassServices (void) const |
Public Member Functions inherited from mtsCommandBase | |
| mtsCommandBase (void) | |
| mtsCommandBase (const std::string &name) | |
| virtual | ~mtsCommandBase () |
| const std::string & | GetName (void) const |
| virtual std::string | ToString (void) const |
| void | Enable (void) |
| void | Disable (void) |
| bool | IsEnabled (void) const |
| bool | IsDisabled (void) const |
Protected Attributes | |
| ActionType | Action |
| ClassType * | ClassInstantiation |
Protected Attributes inherited from mtsCommandWriteBase | |
| const mtsGenericObject * | ArgumentPrototype |
Protected Attributes inherited from mtsCommandBase | |
| std::string | Name |
| bool | EnableFlag |
Additional Inherited Members | |
Protected Member Functions inherited from mtsCommandWriteBase | |
| virtual void | SetArgumentPrototype (const mtsGenericObject *argumentPrototype) |
A templated version of command object with one argument for execute. The template argument is the interface type whose method is contained in the command object.
| typedef void(_classType::* mtsCommandWrite< _classType, _argumentType >::ActionType)(const ArgumentType &) |
Typedef for pointer to member function of the specific interface class.
| typedef _argumentType mtsCommandWrite< _classType, _argumentType >::ArgumentType |
| typedef mtsCommandWriteBase mtsCommandWrite< _classType, _argumentType >::BaseType |
| typedef _classType mtsCommandWrite< _classType, _argumentType >::ClassType |
Typedef for the specific interface.
| typedef mtsCommandWrite<ClassType, ArgumentType> mtsCommandWrite< _classType, _argumentType >::ThisType |
This type.
|
inline |
The constructor.
| action | Pointer to the member function that is to be called by the invoker of the command |
| classInstantiation | Pointer to the receiver of the command |
| name | A string to identify the command. |
|
inlinevirtual |
The destructor. Does nothing
|
inline |
The execute method. Calling the execute method from the invoker applies the operation on the receiver.
| obj | The data passed to the operation method |
|
inline |
Direct execute can be used for mtsMulticastCommandWrite
|
inlinevirtual |
The execute method. Method may be implemented by derived classes to run the actual operation on the receiver
| argument | The data passed to the operation method |
| blocking | Indicates whether caller wishes to block until command finishes |
| finishedEventHandler | Command object to invoke when blocking command is finished |
Implements mtsCommandWriteBase.
|
inlinevirtual |
Implements mtsCommandBase.
|
protected |
The pointer to member function of the receiver class that is to be invoked for a particular instance of the command
|
protected |
Stores the receiver object of the command
1.8.6