ICancellationToken.h
Go to the documentation of this file.
1 /********************************************************************
2 *
3 * Project Artec 3D Scanning SDK
4 *
5 * Purpose: Interface for long-time processes,
6 * that allow them to check cancel condition
7 *
8 * Copyright: Artec Group
9 *
10 ********************************************************************/
11 
12 #ifndef _ICANCELLATIONTOKEN_H_
13 #define _ICANCELLATIONTOKEN_H_
14 
15 #include <artec/sdk/base/IRef.h>
16 
17 namespace artec { namespace sdk { namespace base
18 {
19 
20 class ICancellationToken : public IRef
21 {
22 public:
23 
24  /** Callback to ask if process is canceled and should stop as soon as possible
25  */
26  virtual bool isCancellationRequested() = 0;
27 };
28 
29 } } } // namespace artec::sdk::base
30 
31 #endif // _ICANCELLATIONTOKEN_H_