#include <ParsedStateMachine.hpp>

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::AttributeBase * | getParameter (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 |
State machine created by the scripting engine which represents a parsed state machine.
Definition at line 54 of file ParsedStateMachine.hpp.
typedef std::map<std::string, base::AttributeBase*> RTT::scripting::ParsedStateMachine::VisibleWritableValuesMap [private] |
Definition at line 57 of file ParsedStateMachine.hpp.
Definition at line 209 of file ParsedStateMachine.cpp.
| RTT::ParsedStateMachine::~ParsedStateMachine | ( | ) | [virtual] |
Definition at line 185 of file ParsedStateMachine.cpp.
| void RTT::ParsedStateMachine::addParameter | ( | const std::string & | name, |
| base::AttributeBase * | var | ||
| ) |
Definition at line 228 of file ParsedStateMachine.cpp.
| ParsedStateMachinePtr RTT::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.
Definition at line 54 of file ParsedStateMachine.cpp.
| void RTT::ParsedStateMachine::finish | ( | ) |
Call this function if the state machine is parsed.
Definition at line 304 of file ParsedStateMachine.cpp.
| AttributeBase * RTT::ParsedStateMachine::getParameter | ( | const std::string & | name | ) | const |
Definition at line 236 of file ParsedStateMachine.cpp.
| std::vector< std::string > RTT::ParsedStateMachine::getParameterNames | ( | ) | const |
Definition at line 248 of file ParsedStateMachine.cpp.
Definition at line 243 of file ParsedStateMachine.cpp.
Definition at line 290 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 280 of file ParsedStateMachine.cpp.
| bool RTT::ParsedStateMachine::inState | ( | const std::string & | name | ) |
Definition at line 297 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 253 of file ParsedStateMachine.cpp.
| void RTT::ParsedStateMachine::setService | ( | boost::shared_ptr< StateMachineService > | tc | ) |
Definition at line 293 of file ParsedStateMachine.cpp.
| void RTT::ParsedStateMachine::setText | ( | std::string | text | ) |
Definition at line 285 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 215 of file ParsedStateMachine.cpp.
boost::shared_ptr<std::string> RTT::scripting::ParsedStateMachine::_text [private] |
Definition at line 98 of file ParsedStateMachine.hpp.
boost::shared_ptr<StateMachineService> RTT::scripting::ParsedStateMachine::object [private] |
Definition at line 100 of file ParsedStateMachine.hpp.
Definition at line 96 of file ParsedStateMachine.hpp.