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::LogFilterTaql Class Reference

Filter LogMessages using a TaQL expression. More...

#include <LogFilterTaql.h>

Inheritance diagram for casacore::LogFilterTaql:

Public Member Functions

 LogFilterTaql (const String &expr)
 Construct a filter from a TaQL expression. More...
 LogFilterTaql (const LogFilterTaql &other)
 Copy other to this. More...
LogFilterTaqloperator= (const LogFilterTaql &other)
virtual ~LogFilterTaql ()
virtual LogFilterTaqlclone () const
 Clone the object. More...
virtual Bool pass (const LogMessage &message) const
 Return True if message passes this filter. More...
- Public Member Functions inherited from casacore::LogFilterInterface
 LogFilterInterface ()
 Construct a filter with the LOWEST priority that you want passed. More...
virtual ~LogFilterInterface ()

Private Attributes


Detailed Description

Filter LogMessages using a TaQL expression.

Intended use:

Public interface

Review Status

Reviewed By:
Date Reviewed:
Test programs:
Demo programs:



Log[Message] Filter.


The LogFilter class is used by the various log sink classes, typically accessed through LogSink, to decide whether a particular LogMessage should be accepted or rejected.

Simple filtering is based on the messages priority. In particular, you typically will choose to only pass messages greater than or equal to NORMAL in priority, but you might choose DEBUGGING to see all messages, or SEVERE to only see messages that report serious problems.


Suppose we wanted to change the global sink so that it prints all messages, including debugging messages:


Definition at line 87 of file LogFilterTaql.h.

Constructor & Destructor Documentation

casacore::LogFilterTaql::LogFilterTaql ( const String expr)

Construct a filter from a TaQL expression.

Only messages matching the expression pass the filter. The field names that can be used in the expression are: TIME, PRIORITY, MESSAGE, LOCATION, OBJECT_ID. All fields are strings, expect for TIME which is a double (MJD in sec.).

casacore::LogFilterTaql::LogFilterTaql ( const LogFilterTaql other)

Copy other to this.

virtual casacore::LogFilterTaql::~LogFilterTaql ( )

Member Function Documentation

virtual LogFilterTaql* casacore::LogFilterTaql::clone ( ) const

Clone the object.

Implements casacore::LogFilterInterface.

LogFilterTaql& casacore::LogFilterTaql::operator= ( const LogFilterTaql other)
virtual Bool casacore::LogFilterTaql::pass ( const LogMessage message) const

Return True if message passes this filter.

Implements casacore::LogFilterInterface.

Member Data Documentation

LogFilterExpr* casacore::LogFilterTaql::expr_p

Definition at line 112 of file LogFilterTaql.h.

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