39 #ifndef ORO_COMMANDFUNCTORS_HPP 40 #define ORO_COMMANDFUNCTORS_HPP 42 #include <boost/bind.hpp> 43 #include <boost/function.hpp> 44 #include <boost/type_traits/function_traits.hpp> 46 #include "../base/ActionInterface.hpp" 100 : con(impl), minvert(invert)
104 virtual bool evaluate() {
return con() != minvert; }
virtual void readArguments()
This is invoked some time before execute() at a time when the action may read its function arguments...
virtual ConditionFunction * clone() const
The Clone Software Pattern.
ConditionFunction(Function impl, bool invert=false)
virtual CommandFunction * clone() const
The Clone Software Pattern.
This interface represents the concept of a condition which can be evaluated and return true or false...
virtual bool execute()
Execute the functionality of this action.
CommandFunction(Function impl)
boost::function< bool(void)> Function
Based on the software pattern 'command', this interface allows execution of action objects...
A functor with the ConditionInterface, for the case where the functor is a bool(void).
boost::function< bool(void)> Function
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
A functor with the base::ActionInterface, for the case where the functor is a bool(void).
virtual bool evaluate()
Evaluate the Condition and return the outcome.