summaryrefslogtreecommitdiff
path: root/tools/debugserver/source/MacOSX/DarwinLog/LogFilter.h
blob: 92caac297258186356dc9ef7605229d483f4e72d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//===-- LogFilter.h ---------------------------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#ifndef LogFilter_h
#define LogFilter_h

#include "DarwinLogInterfaces.h"

class LogFilter {
public:
  virtual ~LogFilter();

  virtual bool DoesMatch(const LogMessage &message) const = 0;

  bool MatchesAreAccepted() const { return m_matches_accept; }

protected:
  LogFilter(bool matches_accept) : m_matches_accept(matches_accept) {}

private:
  bool m_matches_accept;
};

#endif /* LogFilter_h */