casacore
Loading...
Searching...
No Matches
LogFilterExpr.h
Go to the documentation of this file.
1//# LogFilterExpr.h: Class to deal with a TaQL expression to filter messages
2//# Copyright (C) 2000
3//# Associated Universities, Inc. Washington DC, USA.
4//#
5//# This program is free software; you can redistribute it and/or modify it
6//# under the terms of the GNU General Public License as published by the Free
7//# Software Foundation; either version 2 of the License, or (at your option)
8//# any later version.
9//#
10//# This program 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 General Public License for
13//# more details.
14//#
15//# You should have received a copy of the GNU General Public License along
16//# with this program; if not, write to the Free Software Foundation, Inc.,
17//# 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18//#
19//# Correspondence concerning AIPS++ should be addressed as follows:
20//# Internet email: casa-feedback@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#ifndef TABLES_LOGFILTEREXPR_H
27#define TABLES_LOGFILTEREXPR_H
28
29
30//# Includes
31#include <casacore/casa/aips.h>
32#include <casacore/tables/TaQL/TableExprData.h>
33
34namespace casacore { //# NAMESPACE CASACORE - BEGIN
35
36//# Forward Declarations
37class TableExprNode;
38class LogMessage;
39
40
41// <summary>
42// Class to deal with a TaQL expression to filter messages.
43// </summary>
44// <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="" demos="">
45// </reviewed>
46
47// This program tests the class TableExprData.
48// This example shows how a data set consisting of two vectors
49// of scalars can be used.
50
51
53{
54public:
55 // Construct it from an expression which gets parsed.
56 LogFilterExpr (const String& expr);
57
58 // Copy constructor (copy semantics).
60
61 virtual ~LogFilterExpr();
62
63 // Assignment (copy semantics).
65
66 // Does this message match the expression?
67 Bool matches (const LogMessage& message);
68
69 // Get the data.
70 // <group>
71 virtual Double getDouble (const Block<Int>& fieldNrs) const;
72 virtual String getString (const Block<Int>& fieldNrs) const;
73 // </group>
74
75 // Get the data type of the various values.
76 virtual DataType dataType (const Block<Int>& fieldNrs) const;
77
78private:
81};
82
83
84
85} //# NAMESPACE CASACORE - END
86
87#endif
simple 1-D array
Definition Block.h:198
LogFilterExpr(const LogFilterExpr &)
Copy constructor (copy semantics).
LogFilterExpr & operator=(const LogFilterExpr &)
Assignment (copy semantics).
virtual Double getDouble(const Block< Int > &fieldNrs) const
Get the data.
virtual String getString(const Block< Int > &fieldNrs) const
Bool matches(const LogMessage &message)
Does this message match the expression?
LogFilterExpr(const String &expr)
Construct it from an expression which gets parsed.
virtual DataType dataType(const Block< Int > &fieldNrs) const
Get the data type of the various values.
const LogMessage * itsMessage
TableExprNode * itsExpr
String: the storage and methods of handling collections of characters.
Definition String.h:223
this file contains all the compiler specific defines
Definition mainpage.dox:28
bool Bool
Define the standard types used by Casacore.
Definition aipstype.h:40
double Double
Definition aipstype.h:53