casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CalSetMetaInfo.h
Go to the documentation of this file.
1 //# SolvableVisCalMetaInfo.h: Definitions of interface for SolvableVisCalMetaInfo
2 //# Copyright (C) 1996,1997,2000,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 //# $Id$
27 
28 #ifndef CALTABLES_CALSETMETAINFO_H
29 #define CALTABLES_CALSETMETAINFO_H
30 
31 #include <casa/aips.h>
38 
39 // #include <casa/Logging/LogMessage.h>
40 // #include <casa/Logging/LogSink.h>
41 // #include <casa/Logging/LogIO.h>
42 
43 namespace casa { //# NAMESPACE CASA - BEGIN
44 
45 // **********************************************************
46 // CalSetMetaInfo
47 //
48 
50 public:
51 
53  antTableName("ANTENNA"), fieldTableName("FIELD"), spwTableName("SPECTRAL_WINDOW"),
54  calTableMSAC(NULL), calTableMSFC(NULL), calTableMSSpC(NULL),
55  calAntTable(NULL), calFieldTable(NULL), calSpwTable(NULL)
56  {rootName="";};
57 
58  CalSetMetaInfo(const casacore::String& root);
59 
61 
62  void setRootName(const casacore::String& root) {rootName=root;};
64  return casacore::Table(base).rwKeywordSet().asTable(subTableName).tableName();};
66  return fullSubTableName(subTableName,rootName);};
67 
68  void reset(const casacore::String& root);
73  // casacore::Vector<casacore::Double> getSpwChanWidth(casacore::Int spw);
75 
81 
82  void copyMetaTables(const casacore::String& target);
83 
84 protected:
85 
86  void cleanUp()
87  {
88  if (calTableMSAC != NULL) {delete calTableMSAC; calTableMSAC = NULL;}
89  if (calTableMSFC != NULL) {delete calTableMSFC; calTableMSFC = NULL;}
90  if (calTableMSSpC != NULL) {delete calTableMSSpC; calTableMSSpC = NULL;}
91 
92  if (calAntTable != NULL) {delete calAntTable; calAntTable = NULL;}
93  if (calFieldTable != NULL) {delete calFieldTable; calFieldTable = NULL;}
94  if (calSpwTable != NULL) {delete calSpwTable; calSpwTable = NULL;}
95  }
96 private:
104 };
105 
106 
107 
108 
109 } //# NAMESPACE CASA - END
110 
111 #endif
void copyMetaTables(const casacore::String &target)
int Int
Definition: aipstype.h:50
Main interface class to a read/write table.
Definition: Table.h:153
A class to provide easy access to MSField columns.
casacore::ROMSAntennaColumns * calTableMSAC
casacore::String getSpwName(casacore::Int spw)
casacore::String getAntName(casacore::Int ant)
Table asTable(const RecordFieldId &) const
Get the table from the given field.
casacore::String spwTableName
casacore::MSAntenna * calAntTable
casacore::MSField * calFieldTable
casacore::String rootName
A class to provide easy read-only access to MSASpectralWindow columns.
casacore::Vector< casacore::Double > getSpwRefFreqs()
A Table intended to hold a MeasurementSet ANTENNA table.
Definition: MSAntenna.h:79
const String & tableName() const
Get the table name.
Definition: Table.h:1219
CalSetMetaInfo
casacore::String fieldTableName
casacore::String fullSubTableName(casacore::String &subTableName)
double Double
Definition: aipstype.h:55
casacore::ROMSFieldColumns * calTableMSFC
casacore::Bool verify(CalSetMetaInfo &otherCSMI)
casacore::String fullSubTableName(casacore::String &subTableName, const casacore::String &base)
casacore::Double getSpwRefFreq(casacore::Int spw)
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
void reset(const casacore::String &root)
void setRootName(const casacore::String &root)
TableRecord & rwKeywordSet()
Get read/write access to the table keyword set.
A Table intended to hold a MeasurementSet FIELD table.
Definition: MSField.h:78
casacore::ROMSSpWindowColumns * calTableMSSpC
casacore::Vector< casacore::String > getFieldNames()
casacore::Double getSpwTotalBandwidth(casacore::Int spw)
casacore::Vector&lt;casacore::Double&gt; getSpwChanWidth(casacore::Int spw);
casacore::String getFieldName(casacore::Int field)
A class to provide easy read-only access to MSAntenna columns.
String: the storage and methods of handling collections of characters.
Definition: String.h:223
casacore::MSSpectralWindow * calSpwTable
casacore::String antTableName
casacore::Vector< casacore::String > getSpwNames()
casacore::Vector< casacore::String > getAntNames()
A Table intended to hold a MeasurementSet SPECTRAL_WINDOW table.