casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VLAFrequencyFilter.h
Go to the documentation of this file.
1 //# VLAFrequencyFilter.h:
2 //# Copyright (C) 1999,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_VLAFREQUENCYFILTER_H
30 #define NRAO_VLAFREQUENCYFILTER_H
31 
32 #include <casa/aips.h>
33 #include <nrao/VLA/VLAFilter.h>
34 
35 #include <casa/namespace.h>
36 namespace casacore{
37 
38 class MVFrequency;
39 }
40 
41 namespace casa { //# NAMESPACE CASA - BEGIN
42 } //# NAMESPACE CASA - END
43 
44 class VLALogicalRecord;
45 
46 // <summary>
47 // </summary>
48 
49 // <use visibility=export>
50 
51 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
52 // </reviewed>
53 
54 // <prerequisite>
55 // <li> SomeClass
56 // <li> SomeOtherClass
57 // <li> some concept
58 // </prerequisite>
59 //
60 // <etymology>
61 // </etymology>
62 //
63 // <synopsis>
64 // Note the start and stop frequencys are the values at the center if the
65 // integration.
66 // </synopsis>
67 //
68 // <example>
69 // </example>
70 //
71 // <motivation>
72 // </motivation>
73 //
74 // <templating arg=T>
75 // <li>
76 // <li>
77 // </templating>
78 //
79 // <thrown>
80 // <li>
81 // <li>
82 // </thrown>
83 //
84 // <todo asof="yyyy/mm/dd">
85 // <li> add this feature
86 // <li> fix this bug
87 // <li> start discussion of this possible extension
88 // </todo>
89 
91 {
92 public:
93  // The default constructor creates a filter that does not filter
94  // anything. ie., the passThru() function always returns true;
96 
97  // Creates a filter that filters all records except those where any of the
98  // observed data are within the specified band. The frequency frame is
99  // assumed to be topocentric.
100  VLAFrequencyFilter(const casacore::MVFrequency& centreFrequency,
102 
103  // The copy constructor uses copy semantics.
105 
106  // The destructor is trivial
107  virtual ~VLAFrequencyFilter();
108 
109  // The assignment operator uses copy semantics.
111 
112  // set the reference frequency.
114 
115  // set the bandwidth.
116  void bandwidth(const casacore::MVFrequency& bandwidth);
117 
118  // returns true if the supplied record contains any data that is between the
119  // specified start and end frequencies.
120  virtual casacore::Bool passThru(const VLALogicalRecord& record) const;
121 
122  // Return a pointer to a copy of the VLAFrequencyFilter object upcast to a
123  // VLAFilter object. The class that uses this function is responsible for
124  // deleting the pointer. This is used to implement a virtual copy
125  // constructor.
126  virtual VLAFilter* clone() const;
127 
128  // casacore::Function which checks the internal data of this class for correct
129  // dimensionality and consistant values. Returns true if everything is fine
130  // otherwise returns false.
131  virtual casacore::Bool ok() const;
132 
133 private:
136 };
137 #endif
138 // Local Variables:
139 // compile-command: "gmake OPTLIB=1 VLAFrequencyFilter"
140 // End:
virtual VLAFilter * clone() const
Return a pointer to a copy of the VLAFrequencyFilter object upcast to a VLAFilter object...
VLAFrequencyFilter & operator=(const VLAFrequencyFilter &other)
The assignment operator uses copy semantics.
virtual casacore::Bool passThru(const VLALogicalRecord &record) const
returns true if the supplied record contains any data that is between the specified start and end fre...
Internal value for MFrequency.
Definition: MVFrequency.h:97
casacore::Double itsBottomEdge
This class interprets a VLA logical record.
void bandwidth(const casacore::MVFrequency &bandwidth)
set the bandwidth.
void refFrequency(const casacore::MVFrequency &refFrequency)
set the reference frequency.
casacore::Double itsTopEdge
virtual casacore::Bool ok() const
casacore::Function which checks the internal data of this class for correct dimensionality and consis...
double Double
Definition: aipstype.h:55
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
VLAFrequencyFilter()
The default constructor creates a filter that does not filter anything.
virtual ~VLAFrequencyFilter()
The destructor is trivial.
#define casacore
&lt;X11/Intrinsic.h&gt; #defines true, false, casacore::Bool, and String.
Definition: X11Intrinsic.h:42