38 #ifndef STATE_DESCRIPTION_HPP 39 #define STATE_DESCRIPTION_HPP 45 {
namespace scripting {
67 : mentry(), mexit(), mhandle(), mrun(),
68 name(_name), entrypoint(linenr), inited(false)
74 const std::string&
getName()
const {
return name; }
75 void setName(
const std::string& newname) { name = newname; }
102 return mhandle.get();
134 StateDescription* copy( std::map<const base::DataSourceBase*, base::DataSourceBase*>& replacementdss )
const;
ProgramInterface * getHandleProgram() const
ProgramInterfacePtr mhandle
void setEntryProgram(ProgramInterfacePtr entry)
int getEntryPoint() const
void setHandleProgram(ProgramInterfacePtr handle)
void setRunProgram(ProgramInterfacePtr run)
void setEntryPoint(int line)
const std::string & getName() const
Get the name of this state.
This class represents a state with all actions stored in an external program.
boost::shared_ptr< ProgramInterface > ProgramInterfacePtr
StateDescription(const std::string &_name, int linenr)
ProgramInterface * getEntryProgram() const
void setExitProgram(ProgramInterfacePtr exit)
void setName(const std::string &newname)
ProgramInterface * getRunProgram() const
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
ProgramInterfacePtr mexit
A Program represents a collection of instructions that can be stepwise executed.
ProgramInterface * getExitProgram() const
ProgramInterfacePtr mentry