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

#include <mtsMulticastCommandVoid.h>

Inheritance diagram for mtsMulticastCommandVoid:
mtsCommandVoid mtsCommandBase

Public Types

typedef mtsCommandVoid BaseType
 
typedef std::vector< BaseType * > VectorType
 
- Public Types inherited from mtsCommandVoid
typedef mtsCommandBase BaseType
 
typedef mtsCommandVoid ThisType
 

Public Member Functions

 mtsMulticastCommandVoid (const std::string &name)
 
 ~mtsMulticastCommandVoid ()
 
virtual bool AddCommand (BaseType *command)
 
virtual bool RemoveCommand (BaseType *command)
 
virtual mtsExecutionResult Execute (mtsBlockingType CMN_UNUSED(blocking))
 
virtual void ToStream (std::ostream &outputStream) const
 
- Public Member Functions inherited from mtsCommandVoid
 mtsCommandVoid (void)
 
 mtsCommandVoid (mtsCallableVoidBase *callable, const std::string &name)
 
virtual ~mtsCommandVoid ()
 
virtual mtsExecutionResult Execute (mtsBlockingType blocking, mtsCommandWriteBase *CMN_UNUSED(finishedEventHandler))
 
mtsCallableVoidBaseGetCallable (void) const
 
size_t NumberOfArguments (void) const
 
bool Returns (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

VectorType Commands
 
- Protected Attributes inherited from mtsCommandVoid
mtsCallableVoidBaseCallable
 
- Protected Attributes inherited from mtsCommandBase
std::string Name
 
bool EnableFlag
 

Detailed Description

This class contains a vector of two or more command objects. Currently it is used by composite interface, where the command needs to be chained, such that it is executed on more than one interface. This is the no argument version, that is the execute method takes no argument.

Member Typedef Documentation

Constructor & Destructor Documentation

mtsMulticastCommandVoid::mtsMulticastCommandVoid ( const std::string &  name)

Default constructor. Does nothing.

mtsMulticastCommandVoid::~mtsMulticastCommandVoid ( )

Default destructor. Does nothing.

Member Function Documentation

virtual bool mtsMulticastCommandVoid::AddCommand ( BaseType command)
virtual

Add a command to the composite.

virtual mtsExecutionResult mtsMulticastCommandVoid::Execute ( mtsBlockingType   CMN_UNUSEDblocking)
virtual

Execute all the commands in the composite.

Reimplemented from mtsCommandVoid.

virtual bool mtsMulticastCommandVoid::RemoveCommand ( BaseType command)
virtual

Remove a command from the composite.

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

Reimplemented from mtsCommandVoid.

Member Data Documentation

VectorType mtsMulticastCommandVoid::Commands
protected

Vector to commands that constitute the composite command.


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