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