casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
LatticeHistProgress.h
Go to the documentation of this file.
00001 //# LatticeHistProgress.h: progress meter for LatticeHistograms
00002 //# Copyright (C) 1996,1997,1999,2000
00003 //# Associated Universities, Inc. Washington DC, USA.
00004 //#
00005 //# This library is free software; you can redistribute it and/or modify it
00006 //# under the terms of the GNU Library General Public License as published by
00007 //# the Free Software Foundation; either version 2 of the License, or (at your
00008 //# option) any later version.
00009 //#
00010 //# This library is distributed in the hope that it will be useful, but WITHOUT
00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012 //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00013 //# License for more details.
00014 //#
00015 //# You should have received a copy of the GNU Library General Public License
00016 //# along with this library; if not, write to the Free Software Foundation,
00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
00018 //#
00019 //# Correspondence concerning AIPS++ should be addressed as follows:
00020 //#        Internet email: aips2-request@nrao.edu.
00021 //#        Postal address: AIPS++ Project Office
00022 //#                        National Radio Astronomy Observatory
00023 //#                        520 Edgemont Road
00024 //#                        Charlottesville, VA 22903-2475 USA
00025 //#
00026 //# $Id: LatticeHistProgress.h 18093 2004-11-30 17:51:10Z ddebonis $
00027 
00028 #ifndef LATTICES_LATTICEHISTPROGRESS_H
00029 #define LATTICES_LATTICEHISTPROGRESS_H
00030 
00031 
00032 //# Includes
00033 #include <casa/aips.h>
00034 #include <lattices/Lattices/LatticeProgress.h>
00035 namespace casa { //# NAMESPACE CASA - BEGIN
00036 
00037 class ProgressMeter;
00038 
00039 
00040 // <summary> Provides a progress meter for the <src>LatticeHistograms</src> class </summary>
00041 // <use visibility=export>
00042 //
00043 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
00044 // </reviewed>
00045 //
00046 // <prerequisite>
00047 //   <li> <linkto module=Lattices>LatticeProgress</linkto>
00048 // </prerequisite>
00049 //
00050 // <etymology>
00051 // Display a progress meter for the class  <src>LatticeHistograms</src>
00052 // </etymology>
00053 //
00054 // <synopsis>
00055 //   Progress meters can be displayed by the <src>LatticeApply</src> class
00056 //   which is used by <src>LatticeHistograms</src> in order to optimally iterate
00057 //   through the image.  To do this,  one must derive a
00058 //   class from <src>LatticeProgress</src>. <src>LatticeApply</src> calls 
00059 //   methods declared in <src>LatticeProgress</src> and  implemented in 
00060 //   the derived class.
00061 // </synopsis>
00062 //
00063 // <motivation>
00064 //  I like progress meters !
00065 // </motivation>
00066 //
00067 // <todo asof="1998/01/10">
00068 // </todo>
00069   
00070 class LatticeHistProgress : public LatticeProgress
00071 {   
00072 public:
00073  
00074 // Constructor makes a null object
00075     LatticeHistProgress() : itsMeter(0) {};
00076  
00077 // Destructor deletes the ProgressMeter pointer
00078     virtual ~LatticeHistProgress();
00079  
00080 // Initialize this object.  Here we create the ProgressMeter
00081 // This function is called by the <src>init</src> in LatticeProgress
00082     virtual void initDerived();
00083   
00084 // Tell the number of steps done so far.
00085     virtual void nstepsDone (uInt nsteps);
00086  
00087 // The process has ended so clean things up.
00088     virtual void done();
00089  
00090 private:
00091     ProgressMeter* itsMeter;
00092 };
00093 
00094 
00095 
00096 } //# NAMESPACE CASA - END
00097 
00098 #endif
00099 
00100 
00101