casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VLAProjectFilter.h
Go to the documentation of this file.
1 //# VLAProjectFilter.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_VLAPROJECTFILTER_H
30 #define NRAO_VLAPROJECTFILTER_H
31 
32 #include <casa/aips.h>
33 #include <nrao/VLA/VLAFilter.h>
34 #include <casa/BasicSL/String.h>
35 
36 #include <casa/namespace.h>
37 class VLALogicalRecord;
38 
39 // <summary>
40 // </summary>
41 
42 // <use visibility=export>
43 
44 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
45 // </reviewed>
46 
47 // <prerequisite>
48 // <li> SomeClass
49 // <li> SomeOtherClass
50 // <li> some concept
51 // </prerequisite>
52 //
53 // <etymology>
54 // </etymology>
55 //
56 // <synopsis>
57 // </synopsis>
58 //
59 // <example>
60 // </example>
61 //
62 // <motivation>
63 // </motivation>
64 //
65 // <templating arg=T>
66 // <li>
67 // <li>
68 // </templating>
69 //
70 // <thrown>
71 // <li>
72 // <li>
73 // </thrown>
74 //
75 // <todo asof="yyyy/mm/dd">
76 // <li> add this feature
77 // <li> fix this bug
78 // <li> start discussion of this possible extension
79 // </todo>
80 
82 {
83 public:
84  // The default constructor creats a filter that does not filter
85  // anything. ie., the passThru() function always returns true;
87 
88  // Creates a filter that filters all records except those with an observing
89  // id that matches (case insensitive) the specified project name.
90  VLAProjectFilter(const casacore::String& projectName);
91 
92  // The copy constructor uses copy semantics.
93  VLAProjectFilter(const VLAProjectFilter& other);
94 
95  // The destructor is trivial
96  virtual ~VLAProjectFilter();
97 
98  // The assignment operator uses copy semantics.
100 
101  // returns true if the supplied record has an observing id that matches (case
102  // insensitive) the project name specified in the constructor.
103  virtual casacore::Bool passThru(const VLALogicalRecord& record) const;
104 
105  // Return a pointer to a copy of the VLAProjectFilter 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 
VLAProjectFilter & operator=(const VLAProjectFilter &other)
The assignment operator uses copy semantics.
This class interprets a VLA logical record.
virtual casacore::Bool ok() const
casacore::Function which checks the internal data of this class for correct dimensionality and consis...
virtual casacore::Bool passThru(const VLALogicalRecord &record) const
returns true if the supplied record has an observing id that matches (case insensitive) the project n...
virtual ~VLAProjectFilter()
The destructor is trivial.
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
casacore::String itsProject
String: the storage and methods of handling collections of characters.
Definition: String.h:223
VLAProjectFilter()
The default constructor creats a filter that does not filter anything.
virtual VLAFilter * clone() const
Return a pointer to a copy of the VLAProjectFilter object upcast to a VLAFilter object.