casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CTInterface.h
Go to the documentation of this file.
1 //# CTInterface.h: Class to present a CalTable with casacore::MS interface
2 //# Copyright (C) 1996,1997,1998,1999,2001
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 addressed 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 CT_CTINTERFACE_H
30 #define CT_CTINTERFACE_H
31 
32 #include <casa/aips.h>
33 #include <casa/BasicSL/String.h>
39 //#include <ms/MeasurementSets/MSDataDescription.h>
42 namespace casa { //# NAMESPACE CASA - BEGIN
43 
45  {
46  public:
49 
50  virtual ~CTInterface();
51  virtual const CTObservation& observation() {return asCT()->observation();}
52  virtual const CTAntenna& antenna() {return asCT()->antenna();}
53  virtual const CTField& field() {return asCT()->field();}
54  virtual const CTSpectralWindow& spectralWindow() {return asCT()->spectralWindow();}
55  virtual casacore::Bool isMS() {return false;};
56  virtual casacore::MSSelectableTable::MSSDataType dataType();// {return casacore::MSSelectableTable::BASELINE_BASED;}
57 
60  // virtual const casacore::MSObservation& observation();
61 
62  virtual const casacore::MeasurementSet* asMS()
63  {
64  //{throw(casacore::AipsError("asMS() called from CTInterface class"));}
65  //cerr << "asMS() called from CTInterface class" << endl;
66  //return static_cast<const casacore::MeasurementSet *>(table());
67  return NULL;
68  }
69  virtual const NewCalTable* asCT();
72  private:
74  void makeDDSubTable();
76  };
77 } //# NAMESPACE CASA - END
78 
79 #endif
CTSpectralWindow & spectralWindow()
Definition: NewCalTable.h:225
A Table intended to hold a MeasurementSet OBSERVATION table.
Definition: MSObservation.h:78
Main interface class to a read/write table.
Definition: Table.h:153
A Table intended to hold a MeasurementSet DATADESCRIPTION table.
virtual casacore::MSSelectableMainColumn * mainColumns()
Definition: CTInterface.h:70
virtual const CTField & field()
Definition: CTInterface.h:53
virtual const casacore::MSDataDescription & dataDescription()
virtual casacore::MSSelectableTable::MSSDataType dataType()
virtual const CTAntenna & antenna()
Definition: CTInterface.h:52
PredefinedColumns
The Main table colums with predefined meaning.
Definition: MSMainEnums.h:65
virtual casacore::Bool isMS()
Definition: CTInterface.h:55
casacore::MSDataDescription fakeDDSubTable
Definition: CTInterface.h:71
A Table intended to hold a MeasurementSet ANTENNA table.
Definition: MSAntenna.h:79
CTMainColInterface * ctMainCols_p
Definition: CTInterface.h:75
virtual ~CTInterface()
CTObservation & observation()
Definition: NewCalTable.h:222
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
MSSelectableTable: An interface class used by MSSelection module to access the sub-tables and main-ta...
A Table intended to hold a MeasurementSet FIELD table.
Definition: MSField.h:78
A Table intended to hold astronomical data (a set of Measurements).
CTField & field()
Definition: NewCalTable.h:224
String: the storage and methods of handling collections of characters.
Definition: String.h:223
virtual casacore::String columnName(casacore::MSMainEnums::PredefinedColumns nameEnum)
CTAntenna & antenna()
Definition: NewCalTable.h:223
virtual const casacore::MeasurementSet * asMS()
virtual const casacore::MSObservation&amp; observation();
Definition: CTInterface.h:62
virtual const CTSpectralWindow & spectralWindow()
Definition: CTInterface.h:54
virtual const CTObservation & observation()
Definition: CTInterface.h:51
virtual const NewCalTable * asCT()
A Table intended to hold a MeasurementSet SPECTRAL_WINDOW table.