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

#include <mtsCommandQualifiedRead.h>

Inheritance diagram for mtsCommandQualifiedRead:
mtsCommandBase

Public Types

typedef mtsCommandBase BaseType
 
typedef mtsCommandQualifiedRead ThisType
 
typedef
mtsCallableQualifiedReadBase 
CallableType
 

Public Member Functions

 mtsCommandQualifiedRead (void)
 
 mtsCommandQualifiedRead (const std::string &name)
 
 mtsCommandQualifiedRead (mtsCallableQualifiedReadBase *callable, const std::string &name, const mtsGenericObject *argument1Prototype, const mtsGenericObject *argument2Prototype)
 
virtual ~mtsCommandQualifiedRead ()
 
virtual mtsExecutionResult Execute (const mtsGenericObject &argument1, mtsGenericObject &argument2)
 
virtual mtsExecutionResult Execute (const mtsGenericObject &argument1, mtsGenericObject &argument2, mtsCommandWriteBase *CMN_UNUSED(finishedEventHandler))
 
mtsCallableQualifiedReadBaseGetCallable (void) const
 
const mtsGenericObjectGetArgument1Prototype (void) const
 
const mtsGenericObjectGetArgument2Prototype (void) const
 
const mtsGenericObjectGetArgumentPrototype (void) const
 
const mtsGenericObjectGetResultPrototype (void) const
 
size_t NumberOfArguments (void) const
 
bool Returns (void) const
 
void ToStream (std::ostream &outputStream) 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

mtsCallableQualifiedReadBaseCallable
 
const mtsGenericObjectArgument1Prototype
 
const mtsGenericObjectArgument2Prototype
 
- Protected Attributes inherited from mtsCommandBase
std::string Name
 
bool EnableFlag
 

Detailed Description

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.

Member Typedef Documentation

Base type

Callable type

This type.

Constructor & Destructor Documentation

mtsCommandQualifiedRead::mtsCommandQualifiedRead ( void  )

The constructor. Does nothing

mtsCommandQualifiedRead::mtsCommandQualifiedRead ( const std::string &  name)
mtsCommandQualifiedRead::mtsCommandQualifiedRead ( mtsCallableQualifiedReadBase callable,
const std::string &  name,
const mtsGenericObject argument1Prototype,
const mtsGenericObject argument2Prototype 
)

The constructor.

Parameters
actionPointer to the member function that is to be called by the invoker of the command
interfacePointer to the receiver of the command
nameA string to identify the command.
virtual mtsCommandQualifiedRead::~mtsCommandQualifiedRead ( )
virtual

The destructor. Does nothing

Member Function Documentation

virtual mtsExecutionResult mtsCommandQualifiedRead::Execute ( const mtsGenericObject argument1,
mtsGenericObject argument2 
)
virtual

The execute method. Calling the execute method from the invoker applies the operation on the receiver.

Parameters
objThe data passed to the operation method
virtual mtsExecutionResult mtsCommandQualifiedRead::Execute ( const mtsGenericObject argument1,
mtsGenericObject argument2,
mtsCommandWriteBase CMN_UNUSEDfinishedEventHandler 
)
inlinevirtual

Execute method that includes a pointer to a handler for the finished event. This is intended for derived classes (e.g., mtsCommandQueuedQualifiedRead).

const mtsGenericObject* mtsCommandQualifiedRead::GetArgument1Prototype ( void  ) const
const mtsGenericObject* mtsCommandQualifiedRead::GetArgument2Prototype ( void  ) const
const mtsGenericObject* mtsCommandQualifiedRead::GetArgumentPrototype ( void  ) const
mtsCallableQualifiedReadBase* mtsCommandQualifiedRead::GetCallable ( void  ) const

Get a direct pointer to the callable object. This method is used for queued commands. The caller should still use the Execute method which will queue the command. When the command is de-queued, one needs access to the callable object to call the final method or function.

const mtsGenericObject* mtsCommandQualifiedRead::GetResultPrototype ( void  ) const
size_t mtsCommandQualifiedRead::NumberOfArguments ( void  ) const
virtual

Returns number of arguments (parameters) expected by Execute method. Must be overloaded in derived classes.

Implements mtsCommandBase.

bool mtsCommandQualifiedRead::Returns ( void  ) const
virtual

Implements mtsCommandBase.

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

Implements mtsCommandBase.

Member Data Documentation

const mtsGenericObject* mtsCommandQualifiedRead::Argument1Prototype
protected

Argument 1 prototype

const mtsGenericObject* mtsCommandQualifiedRead::Argument2Prototype
protected

Argument 2 prototype

mtsCallableQualifiedReadBase* mtsCommandQualifiedRead::Callable
protected

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