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()
virtual ConditionFunction * clone() const
ConditionFunction(Function impl, bool invert=false)
virtual CommandFunction * clone() const
This interface represents the concept of a condition which can be evaluated and return true or false...
CommandFunction(Function impl)
boost::function< bool(void)> Function
Based on the software pattern 'command', this interface allows execution of action objects...
boost::function< bool(void)> Function
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
virtual bool evaluate()
Evaluate the Condition and return the outcome.