Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.atnf.csiro.au/computing/software/casacore/casacore-1.2.0/doc/html/classcasa_1_1LogFilterTaql.html
Дата изменения: Unknown Дата индексирования: Mon Feb 14 22:14:47 2011 Кодировка: Поисковые слова: п п п п п п |
Filter LogMessages using a TaQL expression. More...
#include <LogFilterTaql.h>
Public Member Functions | |
LogFilterTaql (const String &expr) | |
Construct a filter from a TaQL expression. | |
LogFilterTaql (const LogFilterTaql &other) | |
Copy other to this . | |
LogFilterTaql & | operator= (const LogFilterTaql &other) |
virtual | ~LogFilterTaql () |
virtual LogFilterTaql * | clone () const |
Clone the object. | |
virtual Bool | pass (const LogMessage &message) const |
Return True if message passes this filter. | |
Private Attributes | |
LogFilterExpr * | expr_p |
Filter LogMessages using a TaQL expression.
Public interface
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:
LogFilter all(LogMessage::DEBUGGING); LogSink::globalSink().filter(all);
Definition at line 86 of file LogFilterTaql.h.
casa::LogFilterTaql::LogFilterTaql | ( | const String & | expr | ) | [explicit] |
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.).
casa::LogFilterTaql::LogFilterTaql | ( | const LogFilterTaql & | other | ) |
Copy other
to this
.
virtual casa::LogFilterTaql::~LogFilterTaql | ( | ) | [virtual] |
virtual LogFilterTaql* casa::LogFilterTaql::clone | ( | ) | const [virtual] |
Clone the object.
Implements casa::LogFilterInterface.
LogFilterTaql& casa::LogFilterTaql::operator= | ( | const LogFilterTaql & | other | ) |
virtual Bool casa::LogFilterTaql::pass | ( | const LogMessage & | message | ) | const [virtual] |
Return True if message
passes this filter.
Implements casa::LogFilterInterface.
LogFilterExpr* casa::LogFilterTaql::expr_p [private] |
Definition at line 111 of file LogFilterTaql.h.