casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
casacore::LogFilterExpr Class Reference

Class to deal with a TaQL expression to filter messages. More...

#include <LogFilterExpr.h>

Inheritance diagram for casacore::LogFilterExpr:
casacore::TableExprData

Public Member Functions

 LogFilterExpr (const String &expr)
 Construct it from an expression which gets parsed. More...
 
 LogFilterExpr (const LogFilterExpr &)
 Copy constructor (copy semantics). More...
 
virtual ~LogFilterExpr ()
 
LogFilterExproperator= (const LogFilterExpr &)
 Assignment (copy semantics). More...
 
Bool matches (const LogMessage &message)
 Does this message match the expression? More...
 
virtual Double getDouble (const Block< Int > &fieldNrs) const
 Get the data. More...
 
virtual String getString (const Block< Int > &fieldNrs) const
 
virtual DataType dataType (const Block< Int > &fieldNrs) const
 Get the data type of the various values. More...
 
- Public Member Functions inherited from casacore::TableExprData
 TableExprData ()
 Construct it from a row number. More...
 
virtual ~TableExprData ()
 
virtual IPosition shape (const Block< Int > &fieldNrs) const
 Get the shape of the given field. More...
 
virtual Bool getBool (const Block< Int > &fieldNrs) const
 Get a scalar in the given type. More...
 
virtual Int64 getInt (const Block< Int > &fieldNrs) const
 
virtual DComplex getDComplex (const Block< Int > &fieldNrs) const
 
virtual Array< BoolgetArrayBool (const Block< Int > &fieldNrs) const
 Get an array in the given type. More...
 
virtual Array< Int64getArrayInt (const Block< Int > &fieldNrs) const
 
virtual Array< DoublegetArrayDouble (const Block< Int > &fieldNrs) const
 
virtual Array< DComplex > getArrayDComplex (const Block< Int > &fieldNrs) const
 
virtual Array< StringgetArrayString (const Block< Int > &fieldNrs) const
 

Private Attributes

TableExprNodeitsExpr
 
const LogMessageitsMessage
 

Detailed Description

Class to deal with a TaQL expression to filter messages.

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25

This program tests the class TableExprData. This example shows how a data set consisting of two vectors of scalars can be used.

Definition at line 54 of file LogFilterExpr.h.

Constructor & Destructor Documentation

casacore::LogFilterExpr::LogFilterExpr ( const String expr)

Construct it from an expression which gets parsed.

casacore::LogFilterExpr::LogFilterExpr ( const LogFilterExpr )

Copy constructor (copy semantics).

virtual casacore::LogFilterExpr::~LogFilterExpr ( )
virtual

Member Function Documentation

virtual DataType casacore::LogFilterExpr::dataType ( const Block< Int > &  fieldNrs) const
virtual

Get the data type of the various values.

Implements casacore::TableExprData.

virtual Double casacore::LogFilterExpr::getDouble ( const Block< Int > &  fieldNrs) const
virtual

Get the data.

Reimplemented from casacore::TableExprData.

virtual String casacore::LogFilterExpr::getString ( const Block< Int > &  fieldNrs) const
virtual

Reimplemented from casacore::TableExprData.

Bool casacore::LogFilterExpr::matches ( const LogMessage message)

Does this message match the expression?

LogFilterExpr& casacore::LogFilterExpr::operator= ( const LogFilterExpr )

Assignment (copy semantics).

Member Data Documentation

TableExprNode* casacore::LogFilterExpr::itsExpr
private

Definition at line 81 of file LogFilterExpr.h.

const LogMessage* casacore::LogFilterExpr::itsMessage
private

Definition at line 82 of file LogFilterExpr.h.


The documentation for this class was generated from the following file: