LCOV - code coverage report
Current view: top level - synthesis/CalTables - ROCalMainColumns2.h (source / functions) Hit Total Coverage
Test: casacpp_coverage.info Lines: 0 11 0.0 %
Date: 2024-10-04 16:51:10 Functions: 0 22 0.0 %

          Line data    Source code
       1             : //# CalMainColumns.h: Calibration table cal_main column access
       2             : //# Copyright (C) 1996,1997,1998,2001,2002,2003
       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_ROCALMAINCOLUMNS2_H
      30             : #define CALIBRATION_ROCALMAINCOLUMNS2_H
      31             : 
      32             : #include <casacore/casa/aips.h>
      33             : #include <casacore/measures/Measures/MEpoch.h>
      34             : #include <casacore/measures/Measures/MFrequency.h>
      35             : #include <casacore/measures/Measures/MDirection.h>
      36             : #include <casacore/tables/Tables/TableColumn.h>
      37             : #include <casacore/tables/Tables/ScalarColumn.h>
      38             : #include <casacore/tables/Tables/ArrayColumn.h>
      39             : #include <casacore/measures/TableMeasures/TableMeasColumn.h>
      40             : #include <casacore/measures/TableMeasures/ScalarMeasColumn.h>
      41             : #include <casacore/measures/TableMeasures/ArrayMeasColumn.h>
      42             : #include <casacore/measures/TableMeasures/ScalarQuantColumn.h>
      43             : #include <synthesis/CalTables/CalTable2.h>
      44             : #include <msvis/MSVis/MSCalEnums.h>
      45             : 
      46             : namespace casa { //# NAMESPACE CASA - BEGIN
      47             : 
      48             :   template<class T>
      49             :   class ROCalMainColumns2
      50             :   {
      51             :   public:
      52             :     // Construct from a calibration table
      53             :     ROCalMainColumns2 (const CalTable2& calTable);
      54             :     
      55             :     // Default destructor
      56           0 :     virtual ~ROCalMainColumns2() {};
      57             :     
      58             :     // Read-only column accessors
      59           0 :     const casacore::ScalarColumn<casacore::Double>& time() const {return time_p;};
      60             :     const casacore::ROScalarMeasColumn<casacore::MEpoch>& timeMeas() const {return timeMeas_p;};
      61             :     const casacore::ScalarColumn<casacore::Double>& timeEP() const {return timeEP_p;};
      62             :     const casacore::ROScalarQuantColumn<casacore::Double>& timeEPQuant() const
      63             :     {return timeEPQuant_p;};
      64           0 :     const casacore::ScalarColumn<casacore::Double>& interval() const {return interval_p;};
      65             :     const casacore::ROScalarQuantColumn<casacore::Double>& intervalQuant() const
      66             :     {return intervalQuant_p;};
      67           0 :     const casacore::ScalarColumn<casacore::Int>& antenna1() const {return antenna1_p;};
      68             :     const casacore::ScalarColumn<casacore::Int>& feed1() const {return feed1_p;};
      69           0 :     const casacore::ScalarColumn<casacore::Int>& fieldId() const {return fieldId_p;};
      70             :     const casacore::ScalarColumn<casacore::Int>& arrayId() const {return arrayId_p;};
      71             :     const casacore::ScalarColumn<casacore::Int>& obsId() const {return obsId_p;};
      72             :     const casacore::ScalarColumn<casacore::Int>& scanNo() const {return scanNo_p;};
      73             :     const casacore::ScalarColumn<casacore::Int>& processorId() const {return processorId_p;};
      74             :     const casacore::ScalarColumn<casacore::Int>& stateId() const {return stateId_p;};
      75             :     const casacore::ScalarColumn<casacore::Int>& phaseId() const {return phaseId_p;};
      76             :     const casacore::ScalarColumn<casacore::Int>& pulsarBin() const {return pulsarBin_p;};
      77             :     const casacore::ScalarColumn<casacore::Int>& pulsarGateId() const {return pulsarGateId_p;};
      78             :     const casacore::ScalarColumn<casacore::Int>& freqGrp() const {return freqGrp_p;};
      79             :     const casacore::ScalarColumn<casacore::String>& freqGrpName() const {return freqGrpName_p;};
      80           0 :     const casacore::ScalarColumn<casacore::String>& fieldName() const {return fieldName_p;};
      81             :     const casacore::ScalarColumn<casacore::String>& fieldCode() const {return fieldCode_p;};
      82           0 :     const casacore::ScalarColumn<casacore::String>& sourceName() const {return sourceName_p;};
      83             :     const casacore::ScalarColumn<casacore::String>& sourceCode() const {return sourceCode_p;};
      84             :     const casacore::ScalarColumn<casacore::Int>& calGrp() const {return calGrp_p;};
      85             :     //const casacore::ArrayColumn<casacore::Complex>& gain() const {return gain_p;};
      86           0 :     const casacore::ArrayColumn<T>& gain() const {return gain_p;};
      87             :     const casacore::ArrayColumn<casacore::Float>& solvePar() const {return solvePar_p;};
      88             :     const casacore::ArrayColumn<casacore::Int>& refAnt() const {return refAnt_p;};
      89             :     const casacore::ArrayColumn<casacore::Int>& refFeed() const {return refFeed_p;};
      90             :     const casacore::ArrayColumn<casacore::Int>& refReceptor() const {return refReceptor_p;};
      91             :     const casacore::ArrayColumn<casacore::Double>& refFreq() const {return refFreq_p;};
      92             :     const casacore::ROArrayMeasColumn<casacore::MFrequency>& refFreqMeas() const
      93             :     {return refFreqMeas_p;};
      94             :     const casacore::ScalarColumn<casacore::Int>& measFreqRef() const {return measFreqRef_p;};
      95             :     const casacore::ArrayColumn<casacore::Double>& refDir() const {return refDir_p;};
      96             :     const casacore::ROArrayMeasColumn<casacore::MDirection>& refDirMeas() const
      97             :     {return refDirMeas_p;};
      98             :     const casacore::ScalarColumn<casacore::Int>& measDirRef() const {return measDirRef_p;};
      99           0 :     const casacore::ScalarColumn<casacore::Int>& calDescId() const {return calDescId_p;};
     100             :     const casacore::ScalarColumn<casacore::Int>& calHistoryId() const {return calHistoryId_p;};
     101             :     
     102             :   protected:
     103             :     // Prohibit public use of the null constructor, which
     104             :     // does not produce a usable object.
     105             :     ROCalMainColumns2() {};
     106             :     
     107             :     // Return a CalTable as a casacore::Table reference. Utilizes friendship
     108             :     // relationship with class CalTable.
     109           0 :     const casacore::Table& asTable(const CalTable2& calTable) 
     110           0 :     {return calTable.calMainAsTable();}
     111             :     
     112             :     // Attach a table column accessor
     113             :     void attach (const CalTable2& calTable, casacore::TableColumn& tabCol, 
     114             :                  MSCalEnums::colDef colEnum, const casacore::Bool& optional = false);
     115             :     void attach (const CalTable2& calTable, 
     116             :                  casacore::ROArrayMeasColumn<casacore::MEpoch>& tabCol,
     117             :                  MSCalEnums::colDef colEnum, const casacore::Bool& optional = false);
     118             :     void attach (const CalTable2& calTable, 
     119             :                  casacore::ROArrayMeasColumn<casacore::MFrequency>& tabCol,
     120             :                  MSCalEnums::colDef colEnum, const casacore::Bool& optional = false);
     121             :     void attach (const CalTable2& calTable, 
     122             :                  casacore::ROArrayMeasColumn<casacore::MDirection>& tabCol,
     123             :                  MSCalEnums::colDef colEnum, const casacore::Bool& optional = false);
     124             :     void attach (const CalTable2& calTable, casacore::ROScalarMeasColumn<casacore::MEpoch>& tabCol,
     125             :                  MSCalEnums::colDef colEnum, const casacore::Bool& optional = false);
     126             :     void attach (const CalTable2& calTable, casacore::ROScalarQuantColumn<casacore::Double>& tabCol,
     127             :                  MSCalEnums::colDef colEnum, const casacore::Bool& optional = false);
     128             :     
     129             :   private:
     130             :     // Prohibit copy constructor and assignment operator 
     131             :     ROCalMainColumns2 (const ROCalMainColumns2&);
     132             :     ROCalMainColumns2& operator= (const ROCalMainColumns2&);
     133             :     
     134             :     // Private column accessors
     135             :     casacore::ScalarColumn<casacore::Double> time_p;
     136             :     casacore::ROScalarMeasColumn<casacore::MEpoch> timeMeas_p;
     137             :     casacore::ScalarColumn<casacore::Double> timeEP_p;
     138             :     casacore::ROScalarQuantColumn<casacore::Double> timeEPQuant_p;
     139             :     casacore::ScalarColumn<casacore::Double> interval_p;
     140             :     casacore::ROScalarQuantColumn<casacore::Double> intervalQuant_p;
     141             :     casacore::ScalarColumn<casacore::Int> antenna1_p;
     142             :     casacore::ScalarColumn<casacore::Int> feed1_p;
     143             :     casacore::ScalarColumn<casacore::Int> fieldId_p;
     144             :     casacore::ScalarColumn<casacore::Int> arrayId_p;
     145             :     casacore::ScalarColumn<casacore::Int> obsId_p;
     146             :     casacore::ScalarColumn<casacore::Int> scanNo_p;
     147             :     casacore::ScalarColumn<casacore::Int> processorId_p;
     148             :     casacore::ScalarColumn<casacore::Int> stateId_p;
     149             :     casacore::ScalarColumn<casacore::Int> phaseId_p;
     150             :     casacore::ScalarColumn<casacore::Int> pulsarBin_p;
     151             :     casacore::ScalarColumn<casacore::Int> pulsarGateId_p;
     152             :     casacore::ScalarColumn<casacore::Int> freqGrp_p;
     153             :     casacore::ScalarColumn<casacore::String> freqGrpName_p;
     154             :     casacore::ScalarColumn<casacore::String> fieldName_p;
     155             :     casacore::ScalarColumn<casacore::String> fieldCode_p;
     156             :     casacore::ScalarColumn<casacore::String> sourceName_p;
     157             :     casacore::ScalarColumn<casacore::String> sourceCode_p;
     158             :     casacore::ScalarColumn<casacore::Int> calGrp_p;
     159             :     //casacore::ArrayColumn<casacore::Complex> gain_p;
     160             :     casacore::ArrayColumn<T> gain_p;
     161             :     casacore::ArrayColumn<casacore::Float> solvePar_p;
     162             :     casacore::ArrayColumn<casacore::Int> refAnt_p;
     163             :     casacore::ArrayColumn<casacore::Int> refFeed_p;
     164             :     casacore::ArrayColumn<casacore::Int> refReceptor_p;
     165             :     casacore::ArrayColumn<casacore::Double> refFreq_p;
     166             :     casacore::ROArrayMeasColumn<casacore::MFrequency> refFreqMeas_p;
     167             :     casacore::ScalarColumn<casacore::Int> measFreqRef_p;
     168             :     casacore::ArrayColumn<casacore::Double> refDir_p;
     169             :     casacore::ROArrayMeasColumn<casacore::MDirection> refDirMeas_p;
     170             :     casacore::ScalarColumn<casacore::Int> measDirRef_p;
     171             :     casacore::ScalarColumn<casacore::Int> calDescId_p;
     172             :     casacore::ScalarColumn<casacore::Int> calHistoryId_p;
     173             :   };
     174             :   
     175             : }
     176             : 
     177             : 
     178             : #ifndef AIPS_NO_TEMPLATE_SRC
     179             : #include <synthesis/CalTables/ROCalMainColumns2.tcc>
     180             : #endif
     181             : 
     182             : #endif

Generated by: LCOV version 1.16