#include <TryCommand.hpp>
Public Member Functions | |
internal::AssignableDataSource< bool >::shared_ptr | cache () |
base::ActionInterface * | clone () const |
base::ActionInterface * | copy (std::map< const base::DataSourceBase *, base::DataSourceBase * > &alreadyCloned) const |
EvalCommand (internal::DataSource< bool >::shared_ptr ds, internal::AssignableDataSource< bool >::shared_ptr cache=0) | |
bool | execute () |
void | readArguments () |
void | reset () |
~EvalCommand () | |
Public Member Functions inherited from RTT::base::ActionInterface | |
virtual ActionInterface * | copy (std::map< const DataSourceBase *, DataSourceBase * > &alreadyCloned) const |
virtual bool | valid () const |
virtual | ~ActionInterface () |
Private Attributes | |
internal::AssignableDataSource< bool >::shared_ptr | _cache |
internal::DataSource< bool >::shared_ptr | _ds |
Additional Inherited Members | |
Public Types inherited from RTT::base::ActionInterface | |
typedef boost::shared_ptr< ActionInterface > | shared_ptr |
Evaluates a internal::DataSource<bool> in a command. The result will be evaluated in a EvalCommandResult, so this Command returns always true : ie the evaluation itself always succeeds. An EvalCommand should never be dispatched, since the EvalCommandResult assumes the EvalCommand has been executed when evaluated.
Definition at line 127 of file TryCommand.hpp.
RTT::EvalCommand::EvalCommand | ( | internal::DataSource< bool >::shared_ptr | ds, |
internal::AssignableDataSource< bool >::shared_ptr | cache = 0 |
||
) |
Definition at line 131 of file TryCommand.cpp.
RTT::EvalCommand::~EvalCommand | ( | ) |
Definition at line 135 of file TryCommand.cpp.
AssignableDataSource< bool >::shared_ptr RTT::EvalCommand::cache | ( | ) |
Definition at line 152 of file TryCommand.cpp.
|
virtual |
The Clone Software Pattern.
Implements RTT::base::ActionInterface.
Definition at line 156 of file TryCommand.cpp.
ActionInterface * RTT::EvalCommand::copy | ( | std::map< const base::DataSourceBase *, base::DataSourceBase * > & | alreadyCloned | ) | const |
Definition at line 161 of file TryCommand.cpp.
|
virtual |
Execute the functionality of this action.
Implements RTT::base::ActionInterface.
Definition at line 141 of file TryCommand.cpp.
|
virtual |
This is invoked some time before execute() at a time when the action may read its function arguments.
Implements RTT::base::ActionInterface.
Definition at line 138 of file TryCommand.cpp.
|
virtual |
Reset this action. Must be used after execute() failed.
Reimplemented from RTT::base::ActionInterface.
Definition at line 147 of file TryCommand.cpp.
|
private |
Definition at line 131 of file TryCommand.hpp.
|
private |
Definition at line 133 of file TryCommand.hpp.