casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MSAntennaIndex.h
Go to the documentation of this file.
1 //# MSAntennaIndex: index or lookup in a MeasurementSet ANTENNA 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: 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_MSANTENNAINDEX_H
30 #define MS_MSANTENNAINDEX_H
31 
32 //# includes
33 #include <casacore/casa/aips.h>
38 
39 namespace casacore { //# NAMESPACE CASACORE - BEGIN
40 
41 //# forward declarations
42 
43 // <summary>
44 // Class to handle lookup or indexing into a MS ANTENNA subtable
45 // </summary>
46 
47 // <use visibility=export>
48 //
49 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
50 // </reviewed>
51 
52 // <prerequisite>
53 // <li> MeasurementSet
54 // <li> MSAntenna
55 // </prerequisite>
56 //
57 // <etymology>
58 // From "MeasurementSet", "ANTENNA subtable" and "index".
59 // </etymology>
60 //
61 // <synopsis>
62 // This class provides lookup and indexing into an MS ANTENNA
63 // subtable. These services include returning rows numbers
64 // (which for the ANTENNA subtable are ANTENNA_ID's) associated
65 // with specific data in the subtable.
66 // </synopsis>
67 //
68 // <example>
69 // </example>
70 //
71 // <motivation>
72 // Collect together all subtable indexing and lookup for the
73 // ANTENNA subtable, for encapsulation and efficiency.
74 // </motivation>
75 //
76 // <thrown>
77 // <li>
78 // <li>
79 // </thrown>
80 //
81 
83 {
84 public:
85  // Construct from an MS ANTENNA subtable
86  MSAntennaIndex(const MSAntenna &antenna);
87 
88  // Null destructor
89  virtual ~MSAntennaIndex() {}
90 
91  // Look up ANTENNA_ID's for a given a regular expression or pattern
93  // Look up ANTENNA_ID's for a given antenna name, or set of antenna names
96 
97  // Look up ANTENNA_ID's for a given antenna station
99  Vector<Int> matchStationName(const String& station);
101 
102  // Look up ANTENNA_ID's for a given antenna and station name pair
104  const String& station);
105 
106  Vector<Int> matchId(const Vector<Int>& sourceId);
107 private:
108  // Default constructor
109  MSAntennaIndex();
110  // ANTENNA subtable column accessor
112 
113  // Vector cache of antenna id's
116 };
117 
118 
119 } //# NAMESPACE CASACORE - END
120 
121 #endif
122 
Class to handle lookup or indexing into a MS ANTENNA subtable.
int Int
Definition: aipstype.h:50
Vector< Int > matchStationRegexOrPattern(const String &pattern, const Bool regex=False)
Look up ANTENNA_ID&#39;s for a given antenna station.
Vector< Int > matchAntennaRegexOrPattern(const String &pattern, const Bool regex=False)
Look up ANTENNA_ID&#39;s for a given a regular expression or pattern.
Vector< Int > matchAntennaNameAndStation(const String &name, const String &station)
Look up ANTENNA_ID&#39;s for a given antenna and station name pair.
Vector< Int > matchAntennaName(const String &name)
Look up ANTENNA_ID&#39;s for a given antenna name, or set of antenna names.
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
A Table intended to hold a MeasurementSet ANTENNA table.
Definition: MSAntenna.h:79
Vector< Int > antennaIds_p
Vector cache of antenna id&#39;s.
TableExprNode pattern(const TableExprNode &node)
Definition: ExprNode.h:1444
virtual ~MSAntennaIndex()
Null destructor.
Vector< Int > matchId(const Vector< Int > &sourceId)
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
const Bool False
Definition: aipstype.h:44
TableExprNode regex(const TableExprNode &node)
Functions for regular expression matching and pattern matching.
Definition: ExprNode.h:1440
Vector< Int > matchStationName(const String &station)
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
ROMSAntennaColumns msAntennaCols_p
ANTENNA subtable column accessor.
MSAntennaIndex()
Default constructor.
#define casacore
&lt;X11/Intrinsic.h&gt; #defines true, false, casacore::Bool, and String.
Definition: X11Intrinsic.h:42