RTT::scripting::CommandComposite Class Reference

Based on the software pattern 'composite', this class RTT_SCRIPTING_API allows composing command objects into one command object. More...

#include <CommandComposite.hpp>

Inheritance diagram for RTT::scripting::CommandComposite:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void add (base::ActionInterface *com)
virtual void add (base::ActionInterface *com)
virtual base::ActionInterfaceclone () const
virtual base::ActionInterfaceclone () const
 CommandComposite (const CommandComposite &orig)
 CommandComposite (std::vector< base::ActionInterface * > cv)
 CommandComposite ()
 CommandComposite (const CommandComposite &orig)
 CommandComposite (std::vector< base::ActionInterface * > cv)
 CommandComposite ()
virtual base::ActionInterfacecopy (std::map< const base::DataSourceBase *, base::DataSourceBase * > &alreadyCloned) const
virtual base::ActionInterfacecopy (std::map< const base::DataSourceBase *, base::DataSourceBase * > &alreadyCloned) const
virtual bool execute ()
virtual bool execute ()
void readArguments ()
void readArguments ()
bool valid () const
bool valid () const
virtual ~CommandComposite ()
virtual ~CommandComposite ()

Private Attributes

std::vector
< base::ActionInterface * > 
vect

Detailed Description

Based on the software pattern 'composite', this class RTT_SCRIPTING_API allows composing command objects into one command object.

Definition at line 50 of file install/include/rtt/scripting/CommandComposite.hpp.


Constructor & Destructor Documentation

RTT::scripting::CommandComposite::CommandComposite (  )  [inline]
RTT::scripting::CommandComposite::CommandComposite ( std::vector< base::ActionInterface * >  cv  )  [inline]
RTT::scripting::CommandComposite::CommandComposite ( const CommandComposite orig  )  [inline]

Copy-Construct a clone() of all commands

Definition at line 63 of file install/include/rtt/scripting/CommandComposite.hpp.

virtual RTT::scripting::CommandComposite::~CommandComposite (  )  [inline, virtual]
RTT::scripting::CommandComposite::CommandComposite (  )  [inline]

Definition at line 54 of file rtt/scripting/CommandComposite.hpp.

RTT::scripting::CommandComposite::CommandComposite ( std::vector< base::ActionInterface * >  cv  )  [inline]

Definition at line 56 of file rtt/scripting/CommandComposite.hpp.

RTT::scripting::CommandComposite::CommandComposite ( const CommandComposite orig  )  [inline]

Copy-Construct a clone() of all commands

Definition at line 63 of file rtt/scripting/CommandComposite.hpp.

virtual RTT::scripting::CommandComposite::~CommandComposite (  )  [inline, virtual]

Definition at line 70 of file rtt/scripting/CommandComposite.hpp.


Member Function Documentation

virtual void RTT::scripting::CommandComposite::add ( base::ActionInterface com  )  [inline, virtual]

add a command to the vect

Definition at line 106 of file rtt/scripting/CommandComposite.hpp.

virtual void RTT::scripting::CommandComposite::add ( base::ActionInterface com  )  [inline, virtual]

add a command to the vect

Definition at line 106 of file install/include/rtt/scripting/CommandComposite.hpp.

virtual base::ActionInterface* RTT::scripting::CommandComposite::clone (  )  const [inline, virtual]

The Clone Software Pattern.

Implements RTT::base::ActionInterface.

Definition at line 110 of file rtt/scripting/CommandComposite.hpp.

virtual base::ActionInterface* RTT::scripting::CommandComposite::clone (  )  const [inline, virtual]

The Clone Software Pattern.

Implements RTT::base::ActionInterface.

Definition at line 110 of file install/include/rtt/scripting/CommandComposite.hpp.

virtual base::ActionInterface* RTT::scripting::CommandComposite::copy ( std::map< const base::DataSourceBase *, base::DataSourceBase * > &  alreadyCloned  )  const [inline, virtual]

Definition at line 115 of file rtt/scripting/CommandComposite.hpp.

virtual base::ActionInterface* RTT::scripting::CommandComposite::copy ( std::map< const base::DataSourceBase *, base::DataSourceBase * > &  alreadyCloned  )  const [inline, virtual]
virtual bool RTT::scripting::CommandComposite::execute (  )  [inline, virtual]

Execute the functionality of all commands. Commands will be executed in the order they have been added

Implements RTT::base::ActionInterface.

Definition at line 81 of file rtt/scripting/CommandComposite.hpp.

virtual bool RTT::scripting::CommandComposite::execute (  )  [inline, virtual]

Execute the functionality of all commands. Commands will be executed in the order they have been added

Implements RTT::base::ActionInterface.

Definition at line 81 of file install/include/rtt/scripting/CommandComposite.hpp.

void RTT::scripting::CommandComposite::readArguments (  )  [inline, virtual]

This is invoked some time before execute() at a time when the action may read its function arguments.

Implements RTT::base::ActionInterface.

Definition at line 89 of file rtt/scripting/CommandComposite.hpp.

void RTT::scripting::CommandComposite::readArguments (  )  [inline, virtual]

This is invoked some time before execute() at a time when the action may read its function arguments.

Implements RTT::base::ActionInterface.

Definition at line 89 of file install/include/rtt/scripting/CommandComposite.hpp.

bool RTT::scripting::CommandComposite::valid (  )  const [inline, virtual]

Inspect if this action was executed and valid. This method may not be called before execute(). The default implementation returns always true, i.e. after execute(), it was executed. Override this method if it has more complex state semantics.

Reimplemented from RTT::base::ActionInterface.

Definition at line 94 of file rtt/scripting/CommandComposite.hpp.

bool RTT::scripting::CommandComposite::valid (  )  const [inline, virtual]

Inspect if this action was executed and valid. This method may not be called before execute(). The default implementation returns always true, i.e. after execute(), it was executed. Override this method if it has more complex state semantics.

Reimplemented from RTT::base::ActionInterface.

Definition at line 94 of file install/include/rtt/scripting/CommandComposite.hpp.


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


rtt
Author(s): RTT Developers
autogenerated on Fri Jan 11 09:50:11 2013