casacore
Loading...
Searching...
No Matches
LatticeHistProgress.h
Go to the documentation of this file.
1//# LatticeHistProgress.h: progress meter for LatticeHistograms
2//# Copyright (C) 1996,1997,1999,2000
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_LATTICEHISTPROGRESS_H
27#define LATTICES_LATTICEHISTPROGRESS_H
28
29
30//# Includes
31#include <casacore/casa/aips.h>
32#include <casacore/lattices/LatticeMath/LatticeProgress.h>
33namespace casacore { //# NAMESPACE CASACORE - BEGIN
34
35class ProgressMeter;
36
37
38// <summary> Provides a progress meter for the <src>LatticeHistograms</src> class </summary>
39// <use visibility=export>
40//
41// <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
42// </reviewed>
43//
44// <prerequisite>
45// <li> <linkto module=Lattices>LatticeProgress</linkto>
46// </prerequisite>
47//
48// <etymology>
49// Display a progress meter for the class <src>LatticeHistograms</src>
50// </etymology>
51//
52// <synopsis>
53// Progress meters can be displayed by the <src>LatticeApply</src> class
54// which is used by <src>LatticeHistograms</src> in order to optimally iterate
55// through the image. To do this, one must derive a
56// class from <src>LatticeProgress</src>. <src>LatticeApply</src> calls
57// methods declared in <src>LatticeProgress</src> and implemented in
58// the derived class.
59// </synopsis>
60//
61// <motivation>
62// I like progress meters !
63// </motivation>
64//
65// <todo asof="1998/01/10">
66// </todo>
69{
70public:
71
72// Constructor makes a null object
74
75// Destructor deletes the ProgressMeter pointer
76 virtual ~LatticeHistProgress();
77
78// Initialize this object. Here we create the ProgressMeter
79// This function is called by the <src>init</src> in LatticeProgress
80 virtual void initDerived();
81
82// Tell the number of steps done so far.
83 virtual void nstepsDone (uInt nsteps);
84
85// The process has ended so clean things up.
86 virtual void done();
87
88private:
90};
91
92
93
94} //# NAMESPACE CASACORE - END
95
96#endif
97
98
99
Provides a progress meter for the LatticeHistograms class.
virtual void nstepsDone(uInt nsteps)
Tell the number of steps done so far.
LatticeHistProgress()
Constructor makes a null object.
virtual void initDerived()
Initialize this object.
virtual void done()
The process has ended so clean things up.
virtual ~LatticeHistProgress()
Destructor deletes the ProgressMeter pointer.
this file contains all the compiler specific defines
Definition mainpage.dox:28
unsigned int uInt
Definition aipstype.h:49