| The Gaudi Framework v32r1 (f65d50dc)

Public Member Functions | Private Attributes | List of all members
StreamBuffer::Ostream Class Reference

Writer for standard output streams. More...

`#include <GaudiKernel/StreamBuffer.h>`

Inheritance diagram for StreamBuffer::Ostream:
[legend]
Collaboration diagram for StreamBuffer::Ostream:
[legend]

## 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::ostream * | m_stream

## Detailed Description

Writer for standard output streams.

Definition at line 88 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 93 of file StreamBuffer.h.

93 : m_stream( &str ) {}
StreamBuffer::Ostream::m_stream
std::ostream * m_stream
Definition: StreamBuffer.h:89

## ◆ ~Ostream()

virtual StreamBuffer::Ostream::~Ostream | ( |  | ) |
| virtual default

Standard Destructor.

## Member Function Documentation

## ◆ dump()

void StreamBuffer::Ostream::dump | ( | StreamBuffer & | stream | ) |
| inline override virtual

Output dumper.

Reimplemented from StreamBuffer::DataIO.

Definition at line 98 of file StreamBuffer.h.

98 {
99 // Generic implementation for ostreams:
100 ( *m_stream ) << stream.buffPointer();
101 m_stream->write( stream.data(), stream.buffPointer() );
102 }
StreamBuffer::Ostream::m_stream
std::ostream * m_stream
Definition: StreamBuffer.h:89
StreamBuffer::data
const char * data() const
Read access to data buffer.
Definition: StreamBuffer.h:197
std::ostream::write
T write(T... args)
StreamBuffer::buffPointer
long buffPointer() const
Retrieve current buffer pointer.
Definition: StreamBuffer.h:255

## Member Data Documentation

## ◆ m_stream

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

Definition at line 89 of file StreamBuffer.h.

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

- GaudiKernel/GaudiKernel/StreamBuffer.h