blob: e4888361e71f7a51ca2a60c60409b502558afa1e (
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
31
32
33
34
35
36
37
38
|
//===-- LogFilterChain.h ----------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LogFilterChain_h
#define LogFilterChain_h
#include <vector>
#include "DarwinLogInterfaces.h"
class LogFilterChain {
public:
LogFilterChain(bool default_accept);
void AppendFilter(const LogFilterSP &filter_sp);
void ClearFilterChain();
bool GetDefaultAccepts() const;
void SetDefaultAccepts(bool default_accepts);
bool GetAcceptMessage(const LogMessage &message) const;
private:
using FilterVector = std::vector<LogFilterSP>;
FilterVector m_filters;
bool m_default_accept;
};
#endif /* LogFilterChain_hpp */
|