casacore
Loading...
Searching...
No Matches
LattStatsProgress.h
Go to the documentation of this file.
1//# LattStatsProgress.h: progress meter for LatticeStatistics
2//# Copyright (C) 1996,1997,1998,1999
3//# Associated Universities, Inc. Washington DC, USA.
4//#
5//# This library is free software; you can redistribute it and/or modify it
6//# under the terms of the GNU Library General Public License as published by
7//# the Free Software Foundation; either version 2 of the License, or (at your
8//# option) any later version.
9//#
10//# This library is distributed in the hope that it will be useful, but WITHOUT
11//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13//# License for more details.
14//#
15//# You should have received a copy of the GNU Library General Public License
16//# along with this library; if not, write to the Free Software Foundation,
17//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18//#
19//# Correspondence concerning AIPS++ should be addressed as follows:
20//# Internet email: casa-feedback@nrao.edu.
21//# Postal address: AIPS++ Project Office
22//# National Radio Astronomy Observatory
23//# 520 Edgemont Road
24//# Charlottesville, VA 22903-2475 USA
25
26#ifndef LATTICES_LATTSTATSPROGRESS_H
27#define LATTICES_LATTSTATSPROGRESS_H
28
29
30//# Includes
31#include <casacore/casa/aips.h>
32#include <casacore/lattices/LatticeMath/LatticeProgress.h>
33#include <memory>
34
35namespace casacore { //# NAMESPACE CASACORE - BEGIN
36
37class ProgressMeter;
38
39// <summary> Provides a progress meter for the <src>LatticeStatistics</src> class </summary>
40// <use visibility=export>
41//
42// <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
43// </reviewed>
44//
45// <prerequisite>
46// <li> <linkto module=Lattices>LatticeProgress</linkto>
47// </prerequisite>
48//
49// <etymology>
50// Display a progress meter for the class <src>LatticeStatistics</src>
51// </etymology>
52//
53// <synopsis>
54// Progress meters can be displayed by the <src>LatticeApply</src> class
55// which is used by <src>LatticeStatistics</src> in order to optimally iterate
56// through the lattice. To do this, one must derive a
57// class from <src>LatticeProgress</src>. <src>LatticeApply</src> calls
58// methods declared in <src>LatticeProgress</src> and implemented in
59// the derived class.
60// </synopsis>
61//
62// <motivation>
63// I like progress meters !
64// </motivation>
65//
66// <todo asof="1998/01/10">
67// </todo>
68
71{
72public:
73
74 // Constructor makes a null object
76
77 // Destructor deletes the ProgressMeter pointer
78 virtual ~LattStatsProgress();
79
80 // increment the current step (postfix version)
81 void operator++(Int);
82
83 // Initialize this object. Here we create the ProgressMeter
84 // This function is called by the <src>init</src> in LatticeProgress
85 virtual void initDerived();
86
87 // Tell the number of steps done so far.
88 virtual void nstepsDone (uInt nsteps);
89
90 // The process has ended so clean things up.
91 virtual void done();
92
93private:
94 std::shared_ptr<ProgressMeter> _meter;
96};
97
98
99
100
101} //# NAMESPACE CASACORE - END
102
103#endif
Provides a progress meter for the LatticeStatistics class.
virtual ~LattStatsProgress()
Destructor deletes the ProgressMeter pointer.
LattStatsProgress()
Constructor makes a null object.
virtual void done()
The process has ended so clean things up.
std::shared_ptr< ProgressMeter > _meter
virtual void nstepsDone(uInt nsteps)
Tell the number of steps done so far.
virtual void initDerived()
Initialize this object.
void operator++(Int)
increment the current step (postfix version)
this file contains all the compiler specific defines
Definition mainpage.dox:28
unsigned int uInt
Definition aipstype.h:49
int Int
Definition aipstype.h:48