casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
CalDescRecord.h
Go to the documentation of this file.
00001 //# CalDescRecord.h: Cal_desc 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_CALDESCRECORD_H
00030 #define CALIBRATION_CALDESCRECORD_H
00031 
00032 #include <casa/aips.h>
00033 #include <casa/Containers/Record.h>
00034 
00035 namespace casa { //# NAMESPACE CASA - BEGIN
00036 
00037 // <summary> 
00038 // CalDescRecord: Cal_desc 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 description sub-table" and "record".
00052 // </etymology>
00053 //
00054 // <synopsis>
00055 // The CalDescRecord classes allow access to, and creation of, records
00056 // in the cal_desc calibration sub-table. Specializations for SkyJones
00057 // calibration table record types is provided through inheritance.
00058 // </etymology>
00059 //
00060 // <example>
00061 // <srcblock>
00062 // </srcblock>
00063 // </example>
00064 //
00065 // <motivation>
00066 // Encapsulate access to cal_desc calibration table records.
00067 // </motivation>
00068 //
00069 // <todo asof="98/01/01">
00070 // </todo>
00071 
00072 class CalDescRecord
00073 {
00074  public:
00075    // Default null constructor, and destructor
00076    CalDescRecord();
00077    ~CalDescRecord() {};
00078 
00079    // Construct from an existing record
00080    CalDescRecord (const Record& inpRec);
00081 
00082    // Return as record
00083    const Record& record();
00084 
00085    // Field accessors
00086    // a) define
00087    void defineNumSpw (const Int& numSpw);
00088    void defineNumChan (const Array <Int>& numChan);
00089    void defineNumReceptors (const Int& numReceptors);
00090    void defineNJones (const Int& nJones);
00091    void defineSpwId (const Array <Int>& spwId);
00092    void defineChanFreq (const Array <Double>& chanFreq);
00093    void defineChanWidth (const Array <Double>& chanWidth);
00094    void defineChanRange (const Array <Int>& chanRange);
00095    void definePolznType (const Array <String>& polznType);
00096    void defineJonesType (const String& jonesType);
00097    void defineMSName (const String& msName);
00098      
00099    // b) get
00100    void getNumSpw (Int& numSpw);
00101    void getNumChan (Array <Int>& numChan);
00102    void getNumReceptors (Int& numReceptors);
00103    void getNJones (Int& nJones);
00104    void getSpwId (Array <Int>& spwId);
00105    void getChanFreq (Array <Double>& chanFreq);
00106    void getChanWidth (Array <Double>& chanWidth);
00107    void getChanRange (Array <Int>& chanRange);
00108    void getPolznType (Array <String>& polznType);
00109    void getJonesType (String& jonesType);
00110    void getMSName (String& msName);
00111 
00112  protected:
00113    // Add to itsRecord
00114    void addRec (const Record& newRec);
00115 
00116  private:
00117    Record itsRecord;
00118 
00119 };
00120 
00121 
00122 } //# NAMESPACE CASA - END
00123 
00124 #endif
00125    
00126   
00127 
00128 
00129