$search

RTT::scripting::ParsedStateMachine Class Reference

#include <ParsedStateMachine.hpp>

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

List of all members.

Public Member Functions

void addParameter (const std::string &name, base::AttributeBase *var)
ParsedStateMachinePtr copy (std::map< const base::DataSourceBase *, base::DataSourceBase * > &replacements, bool instantiate=false) const
void finish ()
base::AttributeBasegetParameter (const std::string &name) const
std::vector< std::string > getParameterNames () const
VisibleWritableValuesMap getParameters () const
boost::shared_ptr
< StateMachineService
getService () const
std::string getText () const
bool inState (const std::string &name)
 ParsedStateMachine ()
void setName (const std::string &name, bool recursive)
void setService (boost::shared_ptr< StateMachineService > tc)
void setText (std::string text)
virtual ~ParsedStateMachine ()

Protected Member Functions

virtual void unloading ()

Private Types

typedef std::map< std::string,
base::AttributeBase * > 
VisibleWritableValuesMap

Private Attributes

boost::shared_ptr< std::string > _text
boost::shared_ptr
< StateMachineService
object
VisibleWritableValuesMap parametervalues

Detailed Description

State machine created by the scripting engine which represents a parsed state machine.

Definition at line 54 of file ParsedStateMachine.hpp.


Member Typedef Documentation

Definition at line 57 of file ParsedStateMachine.hpp.


Constructor & Destructor Documentation

RTT::ParsedStateMachine::ParsedStateMachine (  ) 

Definition at line 202 of file ParsedStateMachine.cpp.

RTT::ParsedStateMachine::~ParsedStateMachine (  )  [virtual]

Definition at line 178 of file ParsedStateMachine.cpp.


Member Function Documentation

void RTT::ParsedStateMachine::addParameter ( const std::string &  name,
base::AttributeBase var 
)

Definition at line 221 of file ParsedStateMachine.cpp.

ParsedStateMachinePtr RTT::scripting::ParsedStateMachine::copy ( std::map< const base::DataSourceBase *, base::DataSourceBase * > &  replacements,
bool  instantiate = false 
) const

Create a copy, set instantiate to 'true' if instantiating a RootMachine.

void RTT::ParsedStateMachine::finish (  ) 

Call this function if the state machine is parsed.

Definition at line 297 of file ParsedStateMachine.cpp.

AttributeBase * RTT::ParsedStateMachine::getParameter ( const std::string &  name  )  const

Definition at line 229 of file ParsedStateMachine.cpp.

std::vector< std::string > RTT::ParsedStateMachine::getParameterNames (  )  const

Definition at line 241 of file ParsedStateMachine.cpp.

ParsedStateMachine::VisibleWritableValuesMap RTT::ParsedStateMachine::getParameters (  )  const

Definition at line 236 of file ParsedStateMachine.cpp.

StateMachineServicePtr RTT::ParsedStateMachine::getService (  )  const

Definition at line 283 of file ParsedStateMachine.cpp.

std::string RTT::ParsedStateMachine::getText (  )  const [virtual]

Return the text to which getLineNumber() refers.

Reimplemented from RTT::scripting::StateMachine.

Definition at line 273 of file ParsedStateMachine.cpp.

bool RTT::ParsedStateMachine::inState ( const std::string &  name  ) 

Definition at line 290 of file ParsedStateMachine.cpp.

void RTT::ParsedStateMachine::setName ( const std::string &  name,
bool  recursive 
)

Set the name of this machine. If recurisive == true, this also sets subMachines' names, to the given name + "." + the name they have been instantiated by in this machine.

Definition at line 246 of file ParsedStateMachine.cpp.

void RTT::scripting::ParsedStateMachine::setService ( boost::shared_ptr< StateMachineService tc  ) 
void RTT::ParsedStateMachine::setText ( std::string  text  ) 

Definition at line 278 of file ParsedStateMachine.cpp.

void RTT::ParsedStateMachine::unloading (  )  [protected, virtual]

Informs this object that it got unloaded from an ExecutionEngine. Called by unload() before the engine pointer is cleared.

Reimplemented from RTT::scripting::StateMachine.

Definition at line 208 of file ParsedStateMachine.cpp.


Member Data Documentation

boost::shared_ptr<std::string> RTT::scripting::ParsedStateMachine::_text [private]

Definition at line 98 of file ParsedStateMachine.hpp.

Definition at line 100 of file ParsedStateMachine.hpp.

Definition at line 96 of file ParsedStateMachine.hpp.


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 Mar 1 16:27:54 2013