LCOV - code coverage report
Current view: top level - synthesis/CalTables - CalTableDesc2.h (source / functions) Hit Total Coverage
Test: casacpp_coverage.info Lines: 0 2 0.0 %
Date: 2024-12-11 20:54:31 Functions: 0 3 0.0 %

          Line data    Source code
       1             : //# CalTableDesc.h: Define the format of calibration tables
       2             : //# Copyright (C) 1996,1997,1998,2002
       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 adressed 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             : //#
      27             : //# $Id$
      28             : 
      29             : #ifndef CALIBRATION_CALTABLEDESC2_H
      30             : #define CALIBRATION_CALTABLEDESC2_H
      31             : 
      32             : #include <casacore/casa/aips.h>
      33             : #include <casacore/tables/Tables/Table.h>
      34             : #include <casacore/tables/Tables/TableDesc.h>
      35             : #include <synthesis/CalTables/VisCalEnum.h>
      36             : namespace casa { //# NAMESPACE CASA - BEGIN
      37             : 
      38             : // <summary> 
      39             : // CalTableDesc: Define the format of calibration tables
      40             : // </summary>
      41             : 
      42             : // <use visibility=export>
      43             : 
      44             : // <reviewed reviewer="" date="" tests="" demos="">
      45             : 
      46             : // <prerequisite>
      47             : //   <li> <linkto class="CalTable">CalTable</linkto> module
      48             : // </prerequisite>
      49             : //
      50             : // <etymology>
      51             : // From "Calibration table" and "descriptor".
      52             : // </etymology>
      53             : //
      54             : // <synopsis>
      55             : // CalTableDesc defines the format of calibration tables in terms
      56             : // of table descriptors <linkto class="casacore::TableDesc">casacore::TableDesc</linkto>, as
      57             : // defined in the casacore::Table system. This is a base class and defines the
      58             : // overall calibration table structure. Specializations for both
      59             : // antenna-based (ViJones and SkyJones) and baseline-based (MJones)
      60             : // calibration tables are provided through inheritance. At present this 
      61             : // set of classes returns the default calibration table descriptors for a 
      62             : // given calibration table type.
      63             : // </etymology>
      64             : //
      65             : // <example>
      66             : // <srcblock>
      67             : // </srcblock>
      68             : // </example>
      69             : //
      70             : // <motivation>
      71             : // This inheritance tree defines the format of all calibration
      72             : // table types, both antenna- and baseline-based, to provide
      73             : // a unified and consistent interface to their representation
      74             : // as aips++ tables. An overall structure common to all calibration
      75             : // tables is maintained as far as possible, with common column
      76             : // names throughout. This class tree is primarily used by
      77             : // the <linkto class="CalTable"> CalTable</linkto> classes.
      78             : // </motivation>
      79             : //
      80             : // <todo asof="98/01/01">
      81             : // Generate the calibration table descriptors from a VisSet or VisBuffer object
      82             : // </todo>
      83             : 
      84             : class CalTableDesc2
      85             : {
      86             : public:
      87             :   //  enum {REAL=0, COMPLEX};
      88             :   // Default null constructor, and destructor
      89             :   CalTableDesc2();
      90           0 :   virtual ~CalTableDesc2() {};
      91             :   
      92             :   // Construct from the Jones table type
      93             :   CalTableDesc2 (const casacore::String& jonesType, const casacore::Int& parType=VisCalEnum::COMPLEX);
      94             :   
      95             :   // Return the table descriptors for the main calibration table
      96             :   // and the cal_history and cal_desc sub-tables
      97             :   virtual casacore::TableDesc& calMainDesc();
      98             :   virtual casacore::TableDesc calHistoryDesc();
      99             :   virtual casacore::TableDesc calDescDesc();
     100           0 :   casacore::Int parType() {return parType_;}
     101             :   // Generate the default table descriptor for fit parameters
     102             :   casacore::TableDesc defaultFitDesc();
     103             :   void addDesc (const casacore::TableDesc& sourceTableDesc, casacore::TableDesc& targetTableDesc);
     104             :   void init(const casacore::String& jonesType, const casacore::Int& parType);
     105             : protected:
     106             :   
     107             :   // Generate the default table descriptor for general polynomial parameters
     108             :   casacore::TableDesc defaultPolyDesc();
     109             :   
     110             :   // Generate the default table descriptor for spline polynomial parameters
     111             :   casacore::TableDesc defaultSplineDesc();
     112             :   
     113             :   // Method to insert one table descriptor into another after
     114             :   // a specified column name.
     115             :   casacore::TableDesc insertDesc (const casacore::TableDesc& tableDesc, const casacore::TableDesc& insert,
     116             :                         const casacore::String& insertAfter);
     117             : 
     118             : private:
     119             :   // Generate the default sub-table descriptors
     120             :   casacore::TableDesc defaultCalMain (const casacore::String& jonesType, const casacore::Int& parType);
     121             :   casacore::TableDesc defaultCalDesc();
     122             :   casacore::TableDesc defaultCalHistory();
     123             :   
     124             :   // casacore::Table descriptors
     125             :   casacore::TableDesc itsCalMainDesc;
     126             :   casacore::TableDesc itsCalHistoryDesc;
     127             :   casacore::TableDesc itsCalDescDesc;
     128             :   casacore::Int parType_;
     129             : };
     130             :   
     131             :   
     132             : } //# NAMESPACE CASA - END
     133             : 
     134             : #endif
     135             : 
     136             : 
     137             : 
     138             : 
     139             : 

Generated by: LCOV version 1.16