casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
CalHistRecord.h
Go to the documentation of this file.
00001 //# CalHistoryRecord.h: Cal_history table record access and creation
00002 //# Copyright (C) 1996,1997,1998
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 adressed 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 //#
00027 //# $Id: 
00028 
00029 #ifndef CALIBRATION_CALHISTRECORD_H
00030 #define CALIBRATION_CALHISTRECORD_H
00031 
00032 #include <casa/aips.h>
00033 #include <casa/Containers/Record.h>
00034 
00035 namespace casa { //# NAMESPACE CASA - BEGIN
00036 
00037 // <summary> 
00038 // CalHistoryRecord: Cal_ table record access and creation
00039 // </summary>
00040 
00041 // <use visibility=export>
00042 
00043 // <reviewed reviewer="" date="" tests="" demos="">
00044 
00045 // <prerequisite>
00046 //   <li> <linkto class="Record">Record</linkto> module
00047 //   <li> <linkto class="CalMainRecord">CalMainRecord</linkto> module
00048 // </prerequisite>
00049 //
00050 // <etymology>
00051 // From "calibration history sub-table" and "record".
00052 // </etymology>
00053 //
00054 // <synopsis>
00055 // The CalHistoryRecord class allows access to, and creation of, records
00056 // in the cal_history calibration sub-table. 
00057 // </etymology>
00058 //
00059 // <example>
00060 // <srcblock>
00061 // </srcblock>
00062 // </example>
00063 //
00064 // <motivation>
00065 // Encapsulate access to cal_history calibration table records.
00066 // </motivation>
00067 //
00068 // <todo asof="98/01/01">
00069 // </todo>
00070 
00071 class CalHistoryRecord
00072 {
00073  public:
00074    // Default null constructor, and destructor
00075    CalHistoryRecord();
00076    ~CalHistoryRecord() {};
00077 
00078    // Construct from an existing record
00079    CalHistoryRecord (const Record& inpRec);
00080 
00081    // Return as record
00082    const Record& record();
00083 
00084    // Field accessors
00085    // a) define
00086    void defineCalParms (const String& calParms);
00087    void defineCalTables (const String& calTables);
00088    void defineCalSelect (const String& calSelect);
00089    void defineCalNotes (const String& calNotes);
00090      
00091    // b) get
00092    void getCalParms (String& calParms);
00093    void getCalTables (String& calTables);
00094    void getCalSelect (String& calSelect);
00095    void getCalNotes (String& calNotes);
00096 
00097  protected:
00098    // Add to itsRecord
00099    void addRec (const Record& newRec);
00100 
00101  private:
00102    Record itsRecord;
00103 
00104 };
00105 
00106 
00107 } //# NAMESPACE CASA - END
00108 
00109 #endif
00110