39 #ifndef ORO_COMMAND_DATASOURCE_HPP 40 #define ORO_COMMAND_DATASOURCE_HPP 42 #include "../internal/DataSource.hpp" 43 #include "../base/ActionInterface.hpp" 46 {
namespace scripting {
A Command which evaluates a internal::DataSource<bool> and returns the result of get().
base::ActionInterface * clone() const
The Clone Software Pattern.
base::DataSourceBase::shared_ptr _dsb
base::ActionInterface * clone() const
The Clone Software Pattern.
virtual void reset()
Reset the data to initial values.
CommandDataSourceBool(internal::DataSource< bool >::shared_ptr dsb)
virtual DataSource< T > * copy(std::map< const base::DataSourceBase *, base::DataSourceBase * > &alreadyCloned) const =0
Create a deep copy of this internal::DataSource, unless it is already cloned.
void readArguments()
This is invoked some time before execute() at a time when the action may read its function arguments...
base::ActionInterface * copy(std::map< const base::DataSourceBase *, base::DataSourceBase * > &alreadyCloned) const
When copying an Orocos program, we want identical internal::DataSource's to be mapped to identical Da...
bool execute()
Execute the functionality of this action.
internal::DataSource< bool >::shared_ptr _dsb
void reset()
Reset this action.
Based on the software pattern 'command', this interface allows execution of action objects...
void reset()
Reset this action.
A Command which evaluates a base::DataSourceBase and always returns true.
boost::intrusive_ptr< DataSource< T > > shared_ptr
bool execute()
Execute the functionality of this action.
void readArguments()
This is invoked some time before execute() at a time when the action may read its function arguments...
virtual result_t value() const =0
Return the result of the last evaluate() function.
boost::intrusive_ptr< DataSourceBase > shared_ptr
Use this type to store a pointer to a DataSourceBase.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
virtual bool evaluate() const
Force an evaluation of the DataSourceBase.
base::ActionInterface * copy(std::map< const base::DataSourceBase *, base::DataSourceBase * > &alreadyCloned) const
When copying an Orocos program, we want identical internal::DataSource's to be mapped to identical Da...
CommandDataSource(base::DataSourceBase::shared_ptr dsb)