casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CalMainColumns2.h
Go to the documentation of this file.
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: aips2-request@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_CALMAINCOLUMNS2_H
30 #define CALIBRATION_CALMAINCOLUMNS2_H
31 
32 #include <casa/aips.h>
44 #include <msvis/MSVis/MSCalEnums.h>
45 
46 namespace casa { //# NAMESPACE CASA - BEGIN
47 
48 template<class T>
50  public:
51  // Construct from a calibration table
52  CalMainColumns2 (CalTable2& calTable);
53 
54  // Default destructor
55  virtual ~CalMainColumns2() {};
56 
57  // Read-write column accessors
82  //casacore::ArrayColumn<casacore::Complex>& gain() {return gain_p;};
96 
97  protected:
98  // Prohibit public use of the null constructor, which
99  // does not produce a usable object.
101 
102  // Return a CalTable as a casacore::Table reference. Utilizes friendship
103  // relationship with class CalTable.
104  casacore::Table& asTable(CalTable2& calTable) {return calTable.calMainAsTable();}
105 
106  // Attach a table column accessor
107  void attach (CalTable2& calTable, casacore::TableColumn& tabCol,
108  MSCalEnums::colDef colEnum, const casacore::Bool& optional = false);
110  MSCalEnums::colDef colEnum, const casacore::Bool& optional = false);
112  MSCalEnums::colDef colEnum, const casacore::Bool& optional = false);
114  MSCalEnums::colDef colEnum, const casacore::Bool& optional = false);
116  MSCalEnums::colDef colEnum, const casacore::Bool& optional = false);
118  MSCalEnums::colDef colEnum, const casacore::Bool& optional = false);
119 
120  private:
121  // Prohibit copy constructor and assignment operator
124 
125  // Private column accessors
150  //casacore::ArrayColumn<casacore::Complex> gain_p;
164  };
165 } //# NAMESPACE CASA - END
166 
167 #ifndef AIPS_NO_TEMPLATE_SRC
168 #include <synthesis/CalTables/CalMainColumns2.tcc>
169 #endif
170 
171 #endif
CalMainColumns2 & operator=(const CalMainColumns2 &)
casacore::ArrayColumn< casacore::Double > & refDir()
casacore::ScalarMeasColumn< casacore::MEpoch > timeMeas_p
casacore::ScalarColumn< casacore::Int > & pulsarBin()
CalMainColumns2()
Prohibit public use of the null constructor, which does not produce a usable object.
casacore::ArrayMeasColumn< casacore::MFrequency > refFreqMeas_p
casacore::ScalarColumn< casacore::Int > & calHistoryId()
casacore::ArrayColumn< T > solvePar_p
casacore::ScalarColumn< casacore::Double > time_p
Private column accessors.
Main interface class to a read/write table.
Definition: Table.h:153
casacore::ScalarColumn< casacore::String > & fieldCode()
casacore::ScalarColumn< casacore::Int > phaseId_p
casacore::ScalarQuantColumn< casacore::Double > & intervalQuant()
casacore::ScalarColumn< casacore::Int > & freqGrp()
casacore::ScalarColumn< casacore::Int > & antenna1()
casacore::ScalarColumn< casacore::Double > & timeEP()
casacore::ScalarColumn< casacore::String > freqGrpName_p
casacore::ScalarColumn< casacore::String > fieldName_p
casacore::ArrayColumn< T > & gain()
casacore::ArrayColumn&lt;casacore::Complex&gt;&amp; gain() {return gain_p;};
casacore::ScalarColumn< casacore::String > & sourceCode()
casacore::ScalarColumn< casacore::Int > & feed1()
casacore::ScalarColumn< casacore::String > & freqGrpName()
CalTable: Calibration table access and creation.
Definition: CalTable2.h:81
casacore::ScalarColumn< casacore::Int > & calDescId()
casacore::ScalarMeasColumn< casacore::MEpoch > & timeMeas()
casacore::ScalarColumn< casacore::Int > & measDirRef()
casacore::ScalarColumn< casacore::Int > & phaseId()
casacore::ArrayColumn< casacore::Int > & refAnt()
casacore::Table & asTable(CalTable2 &calTable)
Return a CalTable as a casacore::Table reference.
casacore::ScalarQuantColumn< casacore::Double > & timeEPQuant()
casacore::ScalarColumn< casacore::Int > & processorId()
virtual ~CalMainColumns2()
Default destructor.
casacore::ArrayColumn< T > & solvePar()
casacore::ScalarQuantColumn< casacore::Double > timeEPQuant_p
casacore::ArrayMeasColumn< casacore::MFrequency > & refFreqMeas()
casacore::Table & calMainAsTable()
Return cal_main and sub-tables as casacore::Table references.
Definition: CalTable2.h:162
casacore::ArrayColumn< casacore::Double > & refFreq()
casacore::ScalarQuantColumn< casacore::Double > intervalQuant_p
casacore::ScalarColumn< casacore::Int > stateId_p
casacore::ArrayColumn< casacore::Int > refReceptor_p
casacore::ScalarColumn< casacore::Int > & obsId()
casacore::ScalarColumn< casacore::Int > antenna1_p
casacore::ScalarColumn< casacore::Int > & arrayId()
casacore::ScalarColumn< casacore::Int > & calGrp()
casacore::ArrayMeasColumn< casacore::MDirection > & refDirMeas()
casacore::ArrayColumn< T > gain_p
casacore::ArrayColumn&lt;casacore::Complex&gt; gain_p;
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
casacore::ScalarColumn< casacore::String > & fieldName()
Read and write access to an array table column with arbitrary data type.
Definition: Reweighter.h:48
casacore::ArrayColumn< casacore::Int > & refReceptor()
Read/write access to a table column.
Definition: TableColumn.h:98
casacore::ScalarColumn< casacore::Double > & interval()
casacore::ArrayColumn< casacore::Int > refFeed_p
void attach(CalTable2 &calTable, casacore::TableColumn &tabCol, MSCalEnums::colDef colEnum, const casacore::Bool &optional=false)
Attach a table column accessor.
casacore::ScalarColumn< casacore::Int > calGrp_p
casacore::ScalarColumn< casacore::Int > obsId_p
casacore::ScalarColumn< casacore::String > fieldCode_p
casacore::ScalarColumn< casacore::Int > pulsarGateId_p
casacore::ScalarColumn< casacore::Int > feed1_p
casacore::ScalarColumn< casacore::Int > scanNo_p
casacore::ScalarColumn< casacore::Int > fieldId_p
casacore::ArrayColumn< casacore::Double > refFreq_p
casacore::ScalarColumn< casacore::Int > pulsarBin_p
colDef
Enumerate all relevant data fields (columns and keywords)
Definition: MSCalEnums.h:92
casacore::ScalarColumn< casacore::Int > & pulsarGateId()
casacore::ScalarColumn< casacore::String > sourceCode_p
casacore::ScalarColumn< casacore::String > & sourceName()
casacore::ScalarColumn< casacore::Int > calDescId_p
casacore::ScalarColumn< casacore::Int > processorId_p
casacore::ScalarColumn< casacore::Int > & stateId()
casacore::ScalarColumn< casacore::Int > & fieldId()
casacore::ArrayColumn< casacore::Int > & refFeed()
casacore::ScalarColumn< casacore::Int > freqGrp_p
casacore::ScalarColumn< casacore::Int > & measFreqRef()
casacore::ArrayColumn< casacore::Double > refDir_p
casacore::ScalarColumn< casacore::Int > measFreqRef_p
casacore::ArrayColumn< casacore::Int > refAnt_p
casacore::ScalarColumn< casacore::Double > timeEP_p
casacore::ArrayMeasColumn< casacore::MDirection > refDirMeas_p
casacore::ScalarColumn< casacore::Int > calHistoryId_p
casacore::ScalarColumn< casacore::Int > measDirRef_p
casacore::ScalarColumn< casacore::String > sourceName_p
casacore::ScalarColumn< casacore::Int > arrayId_p
casacore::ScalarColumn< casacore::Double > interval_p
casacore::ScalarColumn< casacore::Double > & time()
Read-write column accessors.
casacore::ScalarColumn< casacore::Int > & scanNo()