casacore
Loading...
Searching...
No Matches
MSObsIndex.h
Go to the documentation of this file.
1//# MSObsIndex: index or lookup in an MS OBSERVATION subtable
2//# Copyright (C) 2000,2001,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_MSOBSINDEX_H
27#define MS_MSOBSINDEX_H
28
29//# includes
30#include <casacore/casa/aips.h>
31#include <casacore/ms/MeasurementSets/MSObservation.h>
32#include <casacore/ms/MeasurementSets/MSObsColumns.h>
33#include <casacore/casa/Arrays/Vector.h>
34#include <casacore/casa/Arrays/Matrix.h>
35#include <casacore/casa/BasicSL/String.h>
36
37namespace casacore { //# NAMESPACE CASACORE - BEGIN
38
39//# forward declarations
40
41// <summary>
42// Class to handle lookup or indexing into an MS OBSERVATION subtable
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> MSObservation
53// </prerequisite>
54//
55// <etymology>
56// From "MeasurementSet", "OBSERVATION subtable" and "index".
57// </etymology>
58//
59// <synopsis>
60// This class provides lookup and indexing into an MS OBSERVATION
61// subtable. These services include returning rows numbers (which
62// for the OBSERVATION subtable are OBSERVATION_ID's) associated
63// with specific data in the subtable.
64// </synopsis>
65//
66// <example>
67// </example>
68//
69// <motivation>
70// Collect together all subtable indexing and lookup for the
71// OBSERVATION subtable, for encapsulation and efficiency.
72// </motivation>
73//
74// <thrown>
75// <li>
76// <li>
77// </thrown>
78//
79
81{
82public:
83 // Construct from an MS OBSERVATION subtable
84 MSObservationIndex(const MSObservation& observationTable);
85
86 // Null destructor
88
89 // Look up OBSERVATION_ID's for a given project code
90 Vector<Int> matchProjectCode(const String& projectCode);
91
92private:
93 // Disallow null constructor
95
96 // OBSERVATION subtable column accessor
98
99 // Vector cache of observation id's
102};
103
104
105} //# NAMESPACE CASACORE - END
106
107#endif
108
Vector< Int > observationIds_p
Vector cache of observation id's.
Definition MSObsIndex.h:100
MSObservationIndex()
Disallow null constructor.
Vector< Int > matchProjectCode(const String &projectCode)
Look up OBSERVATION_ID's for a given project code.
MSObservationIndex(const MSObservation &observationTable)
Construct from an MS OBSERVATION subtable.
virtual ~MSObservationIndex()
Null destructor.
Definition MSObsIndex.h:87
MSObservationColumns msObservationCols_p
OBSERVATION subtable column accessor.
Definition MSObsIndex.h:97
String: the storage and methods of handling collections of characters.
Definition String.h:223
this file contains all the compiler specific defines
Definition mainpage.dox:28
int Int
Definition aipstype.h:48