Hide menu
Loading...
Searching...
No Matches
cadex::Base_ProgressStatus::CancellationChecker Class Referenceabstract

Base abstract class for cancelation checker registered in Base_ProgressStatus. More...

#include <cadex/Base_ProgressStatus.hxx>

Inherited by cadex::internal::Base_InterprocessServer< Executor >::CancellationChecker.

Public Member Functions

virtual ~CancellationChecker ()
 Destructor.
 
virtual bool operator() () const =0
 Returns true if the operation has been canceled.
 

Detailed Description

Base abstract class for cancelation checker registered in Base_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 Base_ProgressStatus get notified by calling their methods Base_ProgressStatusObserver::Canceled().

Examples
misc/progressindicatorgui/main.cxx.

Member Function Documentation

◆ operator()()

virtual bool cadex::Base_ProgressStatus::CancellationChecker::operator() ( ) const
pure virtual

Returns true if the operation has been canceled.

The subclasses must redefine this operator to implement required behavior.