The Gaudi Framework  master (37c0b60a)
StreamBuffer::Ostream Class Reference

Writer for standard output streams. More...

#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/StreamBuffer.h>

Inheritance diagram for StreamBuffer::Ostream:
Collaboration diagram for StreamBuffer::Ostream:

Public Member Functions

 Ostream (std::ostream &str)
 Standard constructor: pass reference to stream object. More...
 
virtual ~Ostream ()=default
 Standard Destructor. More...
 
void dump (StreamBuffer &stream) override
 Output dumper. More...
 
- Public Member Functions inherited from StreamBuffer::DataIO
 DataIO ()=default
 Standard constructor. More...
 
virtual ~DataIO ()=default
 Standard destructor. More...
 
void badStreamMode ()
 Throw Exception. More...
 
virtual void serialize (StreamBuffer &stream)
 Serialization method: loads/dumps streambuffer content. More...
 
virtual void load (StreamBuffer &)
 Template function to load stream data. More...
 

Private Attributes

std::ostreamm_stream
 

Detailed Description

Writer for standard output streams.

Definition at line 98 of file StreamBuffer.h.

Constructor & Destructor Documentation

◆ Ostream()

StreamBuffer::Ostream::Ostream ( std::ostream str)
inline

Standard constructor: pass reference to stream object.

Definition at line 103 of file StreamBuffer.h.

103 : m_stream( &str ) {}

◆ ~Ostream()

virtual StreamBuffer::Ostream::~Ostream ( )
virtualdefault

Standard Destructor.

Member Function Documentation

◆ dump()

void StreamBuffer::Ostream::dump ( StreamBuffer stream)
inlineoverridevirtual

Output dumper.

Reimplemented from StreamBuffer::DataIO.

Definition at line 108 of file StreamBuffer.h.

108  {
109  // Generic implementation for ostreams:
110  ( *m_stream ) << stream.buffPointer();
111  m_stream->write( stream.data(), stream.buffPointer() );
112  }

Member Data Documentation

◆ m_stream

std::ostream* StreamBuffer::Ostream::m_stream
private

Definition at line 99 of file StreamBuffer.h.


The documentation for this class was generated from the following file:
Write.stream
stream
Definition: Write.py:32
std::ostream::write
T write(T... args)
StreamBuffer::Ostream::m_stream
std::ostream * m_stream
Definition: StreamBuffer.h:99