$search
#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.
RTT::ParsedStateMachine::ParsedStateMachine | ( | ) |
Definition at line 202 of file ParsedStateMachine.cpp.
RTT::ParsedStateMachine::~ParsedStateMachine | ( | ) | [virtual] |
Definition at line 178 of file ParsedStateMachine.cpp.
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.
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.