OpendTect-6_4  6.4
progressmeter.h
Go to the documentation of this file.
1 #ifndef progressmeter_h
2 #define progressmeter_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Kristofer Tingdahl / Bert Bril
9  Date: 07-10-1999
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "basicmod.h"
16 #include "uistring.h"
17 
18 
22 {
23 public:
24 
25  virtual ~ProgressMeter() {}
26 
27  virtual void setStarted() {}
28  virtual void setFinished() {}
29 
30  virtual od_int64 nrDone() const { return -1; }
31  virtual void setName(const char*) {}
32  virtual void setTotalNr(od_int64) {}
33  virtual void setNrDone(od_int64) {}
34  virtual void setNrDoneText(const uiString&) {}
35  virtual void setMessage(const uiString&) {}
36 
37  virtual void operator++() = 0;
38 
40  virtual void skipProgress(bool yn) {}
41 };
42 
43 
44 // mDeprecated: this inclusion will disappear after 6.0
45 #include "progressmeterimpl.h"
46 
47 
48 #endif
#define mExpClass(module)
Definition: commondefs.h:160
virtual ~ProgressMeter()
Definition: progressmeter.h:25
is an interface where processes can report their progress.
Definition: progressmeter.h:21
#define od_int64
Definition: plftypes.h:36
virtual void setStarted()
Definition: progressmeter.h:27
virtual int64_t nrDone() const
Definition: progressmeter.h:30
virtual void setNrDoneText(const uiString &)
Definition: progressmeter.h:34
Definition: uistring.h:89
virtual void setName(const char *)
Definition: progressmeter.h:31
virtual void skipProgress(bool yn)
Definition: progressmeter.h:40
virtual void setNrDone(int64_t)
Definition: progressmeter.h:33
virtual void setFinished()
Definition: progressmeter.h:28
virtual void setMessage(const uiString &)
Definition: progressmeter.h:35
virtual void setTotalNr(int64_t)
Definition: progressmeter.h:32

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019