39 #ifndef CONDITIONEXPIRE_HPP 40 #define CONDITIONEXPIRE_HPP 43 #include "../os/TimeService.hpp" 46 {
namespace scripting {
68 timestamp = hb->getTicks();
76 return ( time > hb->ticksSince(timestamp) );
81 timestamp = hb->getTicks();
The TimeService is used for system-wide time keeping and conversions.
long long ticks
The type for the systems clock tick.
This interface represents the concept of a condition which can be evaluated and return true or false...
ConditionExpire(ticks t)
Create a Condition that evaluates to false when t is reached.
virtual ~ConditionExpire()
#define RTT_SCRIPTING_API
virtual ConditionInterface * clone() const
The Clone Software Pattern.
A conditional that evaluates true until a certain time has elapsed since construction or the last res...
virtual void reset()
Some conditions need to be reset at some points.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
virtual bool evaluate()
Evaluate the Condition and return the outcome.