DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
ers
include
ers
OutputStream.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/OutputStream.h to include/ers/OutputStream.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
* OutputStream.h
14
* ers
15
*
16
* Created by Matthias Wiesmann on 02.12.04.
17
* Modified by Serguei Kolos on 02.08.05.
18
* Copyright 2004 CERN. All rights reserved.
19
*
20
*/
21
22
23
#ifndef ERS_OUTPUT_STREAM_H
24
#define ERS_OUTPUT_STREAM_H
25
26
#include <string>
27
#include <memory>
28
#include <
ers/Issue.hpp
>
29
34
35
namespace
ers
36
{
37
38
class
Issue
;
39
48
49
class
OutputStream
50
{
51
friend
class
StreamManager
;
52
53
public
:
54
virtual
~OutputStream
()
55
{ ; }
56
58
virtual
void
write
(
const
Issue
& issue ) = 0;
59
60
protected
:
61
OutputStream
( );
62
63
OutputStream
&
chained
( );
64
65
virtual
bool
isNull
()
const
;
66
67
private
:
68
OutputStream
(
const
OutputStream
& other ) =
delete
;
69
OutputStream
&
operator=
(
const
OutputStream
& ) =
delete
;
70
71
void
chained
(
OutputStream
* stream );
72
73
std::unique_ptr<OutputStream>
m_chained
;
74
};
75
}
76
77
#include <
ers/internal/macro.hpp
>
78
79
#endif
80
Issue.hpp
ers::Issue
Base class for any user define issue.
Definition
Issue.hpp:80
ers::OutputStream::~OutputStream
virtual ~OutputStream()
Sends the issue into this stream.
Definition
OutputStream.hpp:54
ers::OutputStream::isNull
virtual bool isNull() const
Definition
OutputStream.cpp:45
ers::OutputStream::operator=
OutputStream & operator=(const OutputStream &)=delete
ers::OutputStream::write
virtual void write(const Issue &issue)=0
ers::OutputStream::StreamManager
friend class StreamManager
Definition
OutputStream.hpp:51
ers::OutputStream::m_chained
std::unique_ptr< OutputStream > m_chained
Definition
OutputStream.hpp:73
ers::OutputStream::chained
OutputStream & chained()
Definition
OutputStream.cpp:29
ers::OutputStream::OutputStream
OutputStream()
Definition
OutputStream.cpp:25
ers::OutputStream::OutputStream
OutputStream(const OutputStream &other)=delete
macro.hpp
ers
Definition
Logger.hxx:202
Generated on
for DUNE-DAQ by
1.17.0