39 #ifndef CURRENT_INCLUDE_PARSEDSTATECONTEXT_HPP 40 #define CURRENT_INCLUDE_PARSEDSTATECONTEXT_HPP 43 #include "../internal/DataSource.hpp" 44 #include <boost/shared_ptr.hpp> 47 {
namespace scripting {
57 typedef std::map<std::string, base::AttributeBase*> VisibleWritableValuesMap;
67 ParsedStateMachinePtr
copy( std::map<const base::DataSourceBase*, base::DataSourceBase*>& replacements,
bool instantiate =
false )
const;
80 void setName(
const std::string& name,
bool recursive );
84 void setText( std::string text);
86 boost::shared_ptr<StateMachineService>
getService()
const;
88 void setService(boost::shared_ptr<StateMachineService> tc);
90 bool inState(
const std::string& name );
96 VisibleWritableValuesMap parametervalues;
98 boost::shared_ptr<std::string> _text;
100 boost::shared_ptr<StateMachineService> object;
bool inState(const std::string &name)
A hierarchical StateMachine which is loaded in the Program Processor.
boost::shared_ptr< ParsedStateMachine > ParsedStateMachinePtr
void finish()
Call this function if the state machine is parsed.
std::string getText() const
Return the text to which getLineNumber() refers.
void setName(const std::string &name, bool recursive)
Set the name of this machine.
void setText(std::string text)
std::vector< std::string > getParameterNames() const
void addParameter(const std::string &name, base::AttributeBase *var)
void setService(boost::shared_ptr< StateMachineService > tc)
virtual ~ParsedStateMachine()
An attribute is a minimalistic, named placeholder for data.
boost::weak_ptr< ParsedStateMachine > ParsedStateMachineWPtr
boost::shared_ptr< StateMachineService > getService() const
ParsedStateMachinePtr copy(std::map< const base::DataSourceBase *, base::DataSourceBase * > &replacements, bool instantiate=false) const
Create a copy, set instantiate to 'true' if instantiating a RootMachine.
base::AttributeBase * getParameter(const std::string &name) const
VisibleWritableValuesMap getParameters() const
virtual void unloading()
Informs this object that it got unloaded from an ExecutionEngine.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
State machine created by the scripting engine which represents a parsed state machine.