IProgress.h
Go to the documentation of this file.
1 /********************************************************************
2 *
3 * Project Artec 3D Scanning SDK
4 *
5 * Purpose: Interface for progress reporters and handlers
6 *
7 * Copyright: Artec Group
8 *
9 ********************************************************************/
10 
11 #ifndef _IPROGRESS_H_
12 #define _IPROGRESS_H_
13 
14 #include <artec/sdk/base/IRef.h>
15 #include <artec/sdk/base/RefBase.h>
16 
17 namespace artec { namespace sdk { namespace base
18 {
19 
20 class IProgress : public IRef
21 {
22 public:
23  ///Callback for progress reporting. Progress may vary from [0...total]
24  virtual void report(int current, int total) = 0;
25 
26  ///Report an activity with unknown current status
27  virtual void pulse() = 0;
28 };
29 
30 /// You can inherit this class instead of IProgress interface
31 /// Reference counting already implemented
32 class ProgressBase : public RefBase<IProgress>
33 {
34 };
35 
36 } } } // namespace artec::sdk::base
37 
38 #endif // _IPROGRESS_H_
virtual void pulse()=0
Report an activity with unknown current status.
virtual void report(int current, int total)=0
Callback for progress reporting. Progress may vary from [0...total].