DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
FilterStream.hpp
Go to the documentation of this file.
1/*
2 * DUNE DAQ modification notice:
3 * This file has been modified from the original ATLAS ers source for the DUNE DAQ project.
4 * Fork baseline commit: 8267df82a4f6fe6bf02c4014923eba19eddc4614 (2020-04-14).
5 * Renamed since fork: yes (from ers/internal/FilterStream.h to include/ers/internal/FilterStream.hpp).
6 *
7 * Original copyright:
8 * Copyright (C) 2001-2020 CERN for the benefit of the ATLAS collaboration.
9 * Licensed under the Apache License, Version 2.0.
10 */
11
12/*
13 * FilterStream.h
14 * ERS
15 *
16 * Created by Matthias Wiesmann on 31.03.05.
17 * Modified by Serguei Kolos on 11.08.05.
18 * Copyright 2005 CERN. All rights reserved.
19 *
20 */
21
26
27#ifndef ERS_STREAM_FILTER_H
28#define ERS_STREAM_FILTER_H
29
30#include <ers/OutputStream.hpp>
31
32namespace ers
33{
48
50 {
51 public:
52 explicit FilterStream( const std::string & format );
53
54 void write( const Issue & issue ) override;
55
56 private:
57 bool is_accepted( const ers::Issue & issue );
58
59 std::vector<std::string> m_include;
60 std::vector<std::string> m_exclude;
61 };
62}
63
64#endif
std::vector< std::string > m_include
include list
void write(const Issue &issue) override
std::vector< std::string > m_exclude
exclude list
bool is_accepted(const ers::Issue &issue)
FilterStream(const std::string &format)
Base class for any user define issue.
Definition Issue.hpp:80