casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LogFilterParallel.h
Go to the documentation of this file.
1 //# LogFilterParallel.h: This file contains the interface of the LogFilterParallel class.
2 //#
3 //# CASA - Common Astronomy Software Applications (http://casa.nrao.edu/)
4 //# Copyright (C) Associated Universities, Inc. Washington DC, USA 2011, All rights reserved.
5 //# Copyright (C) European Southern Observatory, 2011, All rights reserved.
6 //#
7 //# This library is free software; you can redistribute it and/or
8 //# modify it under the terms of the GNU Lesser General Public
9 //# License as published by the Free software Foundation; either
10 //# version 2.1 of the License, or (at your option) any later version.
11 //#
12 //# This library is distributed in the hope that it will be useful,
13 //# but WITHOUT ANY WARRANTY, without even the implied warranty of
14 //# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 //# Lesser General Public License for more details.
16 //#
17 //# You should have received a copy of the GNU Lesser General Public
18 //# License along with this library; if not, write to the Free Software
19 //# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20 //# MA 02111-1307 USA
21 //# $Id: $
22 
23 #ifndef CASA_LOGFILTERPARALLEL_H
24 #define CASA_LOGFILTERPARALLEL_H
25 
26 //# Includes
27 #include <vector>
28 #include <casa/Logging/LogFilter.h>
29 
30 namespace casa { //# NAMESPACE CASA - BEGIN
31 
33 {
34 
35 public:
36 
38  LogFilterParallel (const LogFilterParallel& other);
41  LogFilterParallel* clone() const;
42 
43  casacore::Bool pass(const casacore::LogMessage& message) const;
44  void filterOut(const casacore::Char *text);
45 
46 private:
47 
48  std::vector<casacore::String> filterOutVector_p;
49 
50 };
51 
52 } //# NAMESPACE CASA - END
53 
54 #endif
std::vector< casacore::String > filterOutVector_p
char Char
Definition: aipstype.h:46
LogFilterParallel(casacore::LogMessage::Priority lowest=casacore::LogMessage::NORMAL)
Filter LogMessages on message priority.
Definition: LogFilter.h:84
LogFilterParallel * clone() const
Clone the object.
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
void filterOut(const casacore::Char *text)
Priority
An &quot;importance&quot; which is assigned to each LogMessage.
Definition: LogMessage.h:105
LogFilterParallel & operator=(const LogFilterParallel &other)
casacore::Bool pass(const casacore::LogMessage &message) const
Return True if message passes this filter.
Informational log messages with with time, priority, and origin.
Definition: LogMessage.h:101