casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VLAFilter.h
Go to the documentation of this file.
1 //# VLAFilter.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_VLAFILTER_H
30 #define NRAO_VLAFILTER_H
31 
32 #include <casa/aips.h>
33 
34 #include <casa/namespace.h>
35 class VLALogicalRecord;
36 
37 // <summary>
38 // </summary>
39 
40 // <use visibility=export>
41 
42 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
43 // </reviewed>
44 
45 // <prerequisite>
46 // <li> SomeClass
47 // <li> SomeOtherClass
48 // <li> some concept
49 // </prerequisite>
50 //
51 // <etymology>
52 // </etymology>
53 //
54 // <synopsis>
55 // </synopsis>
56 //
57 // <example>
58 // </example>
59 //
60 // <motivation>
61 // </motivation>
62 //
63 // <templating arg=T>
64 // <li>
65 // <li>
66 // </templating>
67 //
68 // <thrown>
69 // <li>
70 // <li>
71 // </thrown>
72 //
73 // <todo asof="yyyy/mm/dd">
74 // <li> add this feature
75 // <li> fix this bug
76 // <li> start discussion of this possible extension
77 // </todo>
78 
79 class VLAFilter
80 {
81 public:
82  // A virtual destructor is necessary to ensure that the destructor of derived
83  // classes is used.
84  virtual ~VLAFilter();
85 
86  // Return a pointer to a copy of the derived object upcast to a
87  // VLAFilter object. The class that uses this function is responsible
88  // for deleting the pointer. This is used to implement a virtual copy
89  // constructor.
90  virtual VLAFilter* clone() const = 0;
91 
92  // returns true if the supplied record meets the filter criteria.
93  virtual casacore::Bool passThru(const VLALogicalRecord& record) const = 0;
94 
95  // casacore::Function which checks the internal data of this class for correct
96  // dimensionality and consistant values. Returns true if everything is fine
97  // otherwise returns false.
98  virtual casacore::Bool ok() const;
99 
100 private:
101 
102 };
103 #endif
virtual casacore::Bool passThru(const VLALogicalRecord &record) const =0
returns true if the supplied record meets the filter criteria.
This class interprets a VLA logical record.
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
virtual ~VLAFilter()
A virtual destructor is necessary to ensure that the destructor of derived classes is used...
virtual VLAFilter * clone() const =0
Return a pointer to a copy of the derived 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...