casacore
Loading...
Searching...
No Matches
MSFreqOffIndex.h
Go to the documentation of this file.
1// # MSFreqOffIndex: index into a MeasurementSet FREQ_OFFSET 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: 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#ifndef MS_MSFREQOFFINDEX_H
27#define MS_MSFREQOFFINDEX_H
28
29#include <casacore/casa/aips.h>
30#include <casacore/ms/MSSel/MSTableIndex.h>
31
32#include <casacore/casa/Containers/RecordField.h>
33
34namespace casacore { // # NAMESPACE CASACORE - BEGIN
35
36// # forward declarations
37class MSFreqOffset;
38
39// <summary>
40// </summary>
41
42// <use visibility=export>
43
44// <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
45// </reviewed>
46
47// <prerequisite>
48// <li> MeasurementSet
49// <li> MSTableIndex
50// </prerequisite>
51//
52// <etymology>
53// </etymology>
54//
55// <synopsis>
56// </synopsis>
57//
58// <example>
59// </example>
60//
61// <motivation>
62// </motivation>
63//
64// <thrown>
65// <li>
66// <li>
67// </thrown>
68//
69
71 public:
72 // no index attached, use the attach function or assignment operator to change that
74
75 // construct one using the indicated FREQOFF table
76 MSFreqOffIndex(const MSFreqOffset &freqOffset);
77
78 // construct one from another
80
81 virtual ~MSFreqOffIndex();
82
84
85 void attach(const MSFreqOffset &freqOffset);
86
87 // access to the antenna1 ID key, throws an exception if isNull() is False
88 Int &antenna1Id() { return *antenna1Id_p; }
89
90 // access to the antenna2 ID key, throws an exception if isNull() is False
91 Int &antenna2Id() { return *antenna2Id_p; }
92
93 // access to the feed ID key, throws an exception if isNull() is False
94 Int &feedId() { return *feedId_p; }
95
96 // access to the spectral window ID key, throws an exception if isNull() is False
98
99 private:
101
102 void attachIds();
103};
104
105} // namespace casacore
106
107#endif
void attach(const MSFreqOffset &freqOffset)
Int & antenna2Id()
access to the antenna2 ID key, throws an exception if isNull() is False
Int & feedId()
access to the feed ID key, throws an exception if isNull() is False
Int & antenna1Id()
access to the antenna1 ID key, throws an exception if isNull() is False
MSFreqOffIndex(const MSFreqOffset &freqOffset)
construct one using the indicated FREQOFF table
MSFreqOffIndex & operator=(const MSFreqOffIndex &other)
RecordFieldPtr< Int > antenna1Id_p
RecordFieldPtr< Int > spwId_p
MSFreqOffIndex(const MSFreqOffIndex &other)
construct one from another
Int & spectralWindowId()
access to the spectral window ID key, throws an exception if isNull() is False
RecordFieldPtr< Int > antenna2Id_p
MSFreqOffIndex()
no index attached, use the attach function or assignment operator to change that
RecordFieldPtr< Int > feedId_p
MSTableIndex()
no index attached, use the attach function or assignment operator to change that
For temporary backward namespace compatibility, use casa as alias for casacore.
Definition mainpage.dox:28
int Int
Definition aipstype.h:48