DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
ers
src
OutputStream.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/OutputStream.cxx to src/OutputStream.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
* OutputStream.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/OutputStream.hpp
>
22
#include <
ers/internal/NullStream.hpp
>
23
24
25
ers::OutputStream::OutputStream
( )
26
{ ; }
27
28
ers::OutputStream
&
29
ers::OutputStream::chained
( )
30
{
31
if
( !
m_chained
.get() )
32
{
33
m_chained
.reset(
new
ers::NullStream
() );
34
}
35
return
*
m_chained
;
36
}
37
38
void
39
ers::OutputStream::chained
(
OutputStream
* stream )
40
{
41
m_chained
.reset( stream );
42
}
43
44
bool
45
ers::OutputStream::isNull
()
const
46
{
47
return
false
;
48
}
NullStream.hpp
OutputStream.hpp
ers::OutputStream
ERS abstract output stream interface.
Definition
OutputStream.hpp:50
ers::OutputStream::isNull
virtual bool isNull() const
Definition
OutputStream.cpp:45
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::NullStream
Null stream.
Definition
NullStream.hpp:47
Generated on
for DUNE-DAQ by
1.17.0