casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VLASubarrayFilter.h
Go to the documentation of this file.
1 //# VLASubarrayFilter.h:
2 //# Copyright (C) 2000
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 NRAO_VLASUBARRAYFILTER_H
30 #define NRAO_VLASUBARRAYFILTER_H
31 
32 #include <casa/aips.h>
33 #include <nrao/VLA/VLAFilter.h>
34 
35 #include <casa/namespace.h>
36 class VLALogicalRecord;
37 
38 // <summary>
39 // </summary>
40 
41 // <use visibility=export>
42 
43 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
44 // </reviewed>
45 
46 // <prerequisite>
47 // <li> SomeClass
48 // <li> SomeOtherClass
49 // <li> some concept
50 // </prerequisite>
51 //
52 // <etymology>
53 // </etymology>
54 //
55 // <synopsis>
56 // </synopsis>
57 //
58 // <example>
59 // </example>
60 //
61 // <motivation>
62 // </motivation>
63 //
64 // <templating arg=T>
65 // <li>
66 // <li>
67 // </templating>
68 //
69 // <thrown>
70 // <li>
71 // <li>
72 // </thrown>
73 //
74 // <todo asof="yyyy/mm/dd">
75 // <li> add this feature
76 // <li> fix this bug
77 // <li> start discussion of this possible extension
78 // </todo>
79 
81 {
82 public:
83  // The default constructor creats a filter that does not filter
84  // anything. ie., the passThru() function always returns true;
86 
87  // Creates a filter that filters all records except those with a subarray
88  // number that matches the specified value. The specified value must be less
89  // than 28 otherwise an exception is thrown (in Debug Mode)
90  VLASubarrayFilter(const casacore::uInt subArray);
91 
92  // The copy constructor uses copy semantics.
94 
95  // The destructor is trivial
96  virtual ~VLASubarrayFilter();
97 
98  // The assignment operator uses copy semantics.
100 
101  // returns true if the supplied record has an subarray id that matches
102  // the subarray id specified in the constructor.
103  virtual casacore::Bool passThru(const VLALogicalRecord& record) const;
104 
105  // Return a pointer to a copy of the VLASubarrayFilter object upcast to a
106  // VLAFilter object. The class that uses this function is responsible for
107  // deleting the pointer. This is used to implement a virtual copy
108  // constructor.
109  virtual VLAFilter* clone() const;
110 
111  // casacore::Function which checks the internal data of this class for correct
112  // dimensionality and consistant values. Returns true if everything is fine
113  // otherwise returns false.
114  virtual casacore::Bool ok() const;
115 
116 private:
118 };
119 #endif
120 
121 
virtual casacore::Bool ok() const
casacore::Function which checks the internal data of this class for correct dimensionality and consis...
virtual ~VLASubarrayFilter()
The destructor is trivial.
This class interprets a VLA logical record.
VLASubarrayFilter & operator=(const VLASubarrayFilter &other)
The assignment operator uses copy semantics.
casacore::uInt itsArray
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
virtual VLAFilter * clone() const
Return a pointer to a copy of the VLASubarrayFilter object upcast to a VLAFilter object.
VLASubarrayFilter()
The default constructor creats a filter that does not filter anything.
unsigned int uInt
Definition: aipstype.h:51
virtual casacore::Bool passThru(const VLALogicalRecord &record) const
returns true if the supplied record has an subarray id that matches the subarray id specified in the ...