Base abstract class for cancelation checker registered in ProgressStatus. More...
#include <cadex/ProgressStatus.hxx>
Public Member Functions | |
virtual | ~CancellationChecker () |
Destructor. | |
virtual bool | operator() () const =0 |
Returns true if the operation has been canceled. | |
Base abstract class for cancelation checker registered in ProgressStatus.
Subclasses must redefined virtual operator() which returns a boolean value whether the operation has been canceled.
The redefined method must be thread-safe and fast enough as it can be called very frequently and from multiple threads.
Once the checker has returned true the value is stored and no further calls are made. The observers registered in ProgressStatus get notified by calling their methods ProgressStatus::Observer::Canceled().
|
pure virtual |
Returns true if the operation has been canceled.
The subclasses must redefine this operator to implement required behavior.