DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq
sourcecode
ers
src
OutputStream.cpp
Go to the documentation of this file.
1
/*
2
* OutputStream.cxx
3
* ers
4
*
5
* Created by Serguei Kolos on 01.08.05.
6
* Copyright 2004 CERN. All rights reserved.
7
*
8
*/
9
10
#include <
ers/OutputStream.hpp
>
11
#include <
ers/internal/NullStream.hpp
>
12
13
14
ers::OutputStream::OutputStream
( )
15
{ ; }
16
17
ers::OutputStream
&
18
ers::OutputStream::chained
( )
19
{
20
if
( !
m_chained
.get() )
21
{
22
m_chained
.reset(
new
ers::NullStream
() );
23
}
24
return
*
m_chained
;
25
}
26
27
void
28
ers::OutputStream::chained
(
OutputStream
* stream )
29
{
30
m_chained
.reset( stream );
31
}
32
33
bool
34
ers::OutputStream::isNull
()
const
35
{
36
return
false
;
37
}
NullStream.hpp
OutputStream.hpp
ers::OutputStream
ERS abstract output stream interface.
Definition
OutputStream.hpp:39
ers::OutputStream::isNull
virtual bool isNull() const
Definition
OutputStream.cpp:34
ers::OutputStream::m_chained
std::unique_ptr< OutputStream > m_chained
Definition
OutputStream.hpp:62
ers::OutputStream::chained
OutputStream & chained()
Definition
OutputStream.cpp:18
ers::OutputStream::OutputStream
OutputStream()
Definition
OutputStream.cpp:14
ers::NullStream
Null stream.
Definition
NullStream.hpp:36
Generated on Sat Jun 28 2025 for DUNE-DAQ by
1.12.0