DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
InputStream.cpp
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 src/InputStream.cxx to src/InputStream.cpp).
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 * InputStream.cxx
14 * ers
15 *
16 * Created by Serguei Kolos on 01.08.05.
17 * Copyright 2004 CERN. All rights reserved.
18 *
19 */
20
21#include <ers/InputStream.hpp>
22
23namespace
24{
25 struct DummyReceiver: public ers::IssueReceiver
26 {
27 void receive( const ers::Issue & ) override { ; }
28 };
29
30 DummyReceiver dummy_receiver;
31}
32
34 : m_receiver( &dummy_receiver )
35{ ; }
36
37void ers::InputStream::receive( const Issue & issue )
38{
39 m_receiver->receive( issue );
40}
IssueReceiver * m_receiver
InputStream()
Will be called when a new issue is received.
void receive(const Issue &issue)
ERS Issue receiver interface.
Base class for any user define issue.
Definition Issue.hpp:80