casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MSSysCalIndex.h
Go to the documentation of this file.
1 //# MSSysCalIndex: index into a MeasurementSet SYSCAL subtable
2 //# Copyright (C) 2000,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 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 MS_MSSYSCALINDEX_H
30 #define MS_MSSYSCALINDEX_H
31 
32 #include <casacore/casa/aips.h>
34 
36 
37 namespace casacore { //# NAMESPACE CASACORE - BEGIN
38 
39 //# forward declarations
40 class MSSysCal;
41 
42 // <summary>
43 // </summary>
44 
45 // <use visibility=export>
46 
47 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
48 // </reviewed>
49 
50 // <prerequisite>
51 // <li> MeasurementSet
52 // <li> MSTableIndex
53 // </prerequisite>
54 //
55 // <etymology>
56 // </etymology>
57 //
58 // <synopsis>
59 // </synopsis>
60 //
61 // <example>
62 // </example>
63 //
64 // <motivation>
65 // </motivation>
66 //
67 // <thrown>
68 // <li>
69 // <li>
70 // </thrown>
71 //
72 
74 {
75 public:
76  // no index attached, use the attach function or assignment operator to change that
77  MSSysCalIndex();
78 
79  // construct one using the indicated SYSCAL table
80  MSSysCalIndex(const MSSysCal &sysCal);
81 
82  // construct one from another
83  MSSysCalIndex(const MSSysCalIndex &other);
84 
85  virtual ~MSSysCalIndex();
86 
87  MSSysCalIndex &operator=(const MSSysCalIndex &other);
88 
89  void attach(const MSSysCal &sysCal);
90 
91  // access to the antenna ID key, throws an exception if isNull() is False
92  Int &antennaId() {return *antennaId_p;}
93 
94  // access to the feed ID key, throws an exception if isNull() is False
95  Int &feedId() {return *feedId_p;}
96 
97  // access to the spectral window ID key, throws an exception if isNull() is False
99 private:
101 
102  void attachIds();
103 };
104 
105 
106 } //# NAMESPACE CASACORE - END
107 
108 #endif
109 
MSSysCalIndex()
no index attached, use the attach function or assignment operator to change that
int Int
Definition: aipstype.h:50
RecordFieldPtr< Int > antennaId_p
RecordFieldPtr< Int > feedId_p
MSSysCalIndex & operator=(const MSSysCalIndex &other)
A Table intended to hold a MeasurementSet SYSCAL table.
Definition: MSSysCal.h:78
Int & spectralWindowId()
access to the spectral window ID key, throws an exception if isNull() is False
Definition: MSSysCalIndex.h:98
void attach(const MSSysCal &sysCal)
Int & antennaId()
access to the antenna ID key, throws an exception if isNull() is False
Definition: MSSysCalIndex.h:92
RecordFieldPtr< Int > spwId_p
Int & feedId()
access to the feed ID key, throws an exception if isNull() is False
Definition: MSSysCalIndex.h:95
#define casacore
&lt;X11/Intrinsic.h&gt; #defines true, false, casacore::Bool, and String.
Definition: X11Intrinsic.h:42