DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
ers::OutputStream Class Referenceabstract

ERS abstract output stream interface. More...

#include <OutputStream.hpp>

Inheritance diagram for ers::OutputStream:
[legend]

Public Member Functions

virtual ~OutputStream ()
 Sends the issue into this stream.
 
virtual void write (const Issue &issue)=0
 

Protected Member Functions

 OutputStream ()
 
OutputStreamchained ()
 
virtual bool isNull () const
 

Private Member Functions

 OutputStream (const OutputStream &other)=delete
 
OutputStreamoperator= (const OutputStream &)=delete
 
void chained (OutputStream *stream)
 

Private Attributes

std::unique_ptr< OutputStreamm_chained
 

Friends

class StreamManager
 

Detailed Description

ERS abstract output stream interface.

The abstract ERS output stream interface. This interface defines the pure virtual method to write issues to the stream. Any subclass must implement this method.

Author
Serguei Kolos
Version
1.0

Definition at line 38 of file OutputStream.hpp.

Constructor & Destructor Documentation

◆ ~OutputStream()

virtual ers::OutputStream::~OutputStream ( )
inlinevirtual

Sends the issue into this stream.

Definition at line 43 of file OutputStream.hpp.

◆ OutputStream() [1/2]

ers::OutputStream::OutputStream ( )
protected

Definition at line 14 of file OutputStream.cpp.

15{ ; }

◆ OutputStream() [2/2]

ers::OutputStream::OutputStream ( const OutputStream & other)
privatedelete

Member Function Documentation

◆ chained() [1/2]

ers::OutputStream & ers::OutputStream::chained ( )
protected

Definition at line 18 of file OutputStream.cpp.

19{
20 if ( !m_chained.get() )
21 {
22 m_chained.reset( new ers::NullStream() );
23 }
24 return *m_chained;
25}
std::unique_ptr< OutputStream > m_chained
Null stream.

◆ chained() [2/2]

void ers::OutputStream::chained ( OutputStream * stream)
private

Definition at line 28 of file OutputStream.cpp.

29{
30 m_chained.reset( stream );
31}

◆ isNull()

bool ers::OutputStream::isNull ( ) const
protectedvirtual

Reimplemented in ers::NullStream.

Definition at line 34 of file OutputStream.cpp.

35{
36 return false;
37}

◆ operator=()

OutputStream & ers::OutputStream::operator= ( const OutputStream & )
privatedelete

◆ write()

Friends And Related Symbol Documentation

◆ StreamManager

friend class StreamManager
friend

Definition at line 40 of file OutputStream.hpp.

Member Data Documentation

◆ m_chained

std::unique_ptr<OutputStream> ers::OutputStream::m_chained
private

Definition at line 62 of file OutputStream.hpp.


The documentation for this class was generated from the following files: