| # Gaudi Framework, version v20r2
Generated: 18 Jul 2008

- Main Page
- Namespaces
- Classes
- Files
- Directories
- Related Pages

- Search for |

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# StreamBuffer::Ostream Class Reference

`#include <StreamBuffer.h>`

Inheritance diagram for StreamBuffer::Ostream:

[legend]
Collaboration diagram for StreamBuffer::Ostream:

[legend]
List of all members.

## Detailed Description

Writer for standard output streams.

Definition at line 92 of file StreamBuffer.h.

## Public Member Functions
| Ostream (std::ostream &str)
| Standard constructor: pass reference to stream object.
virtual | ~Ostream ()
| Standard Destructor.
virtual void | dump (StreamBuffer &stream)
| Output dumper.
## Private Attributes
std::ostream * | m_stream

## Constructor & Destructor Documentation

StreamBuffer::Ostream::Ostream | ( | std::ostream & | str | ) | `[inline]`

Standard constructor: pass reference to stream object.

Definition at line 96 of file StreamBuffer.h.

    00096                              : m_stream(&str)   {
    00097     }

virtual StreamBuffer::Ostream::~Ostream | ( |  | ) | `[inline, virtual]`

Standard Destructor.

Definition at line 99 of file StreamBuffer.h.

    00099                         {
    00100     }

## Member Function Documentation

virtual void StreamBuffer::Ostream::dump | ( | StreamBuffer & | stream | ) | `[inline, virtual]`

Output dumper.

Reimplemented from StreamBuffer::DataIO.

Definition at line 102 of file StreamBuffer.h.

References StreamBuffer::buffPointer(), StreamBuffer::data(), m_stream, and std::basic_ostream< _CharT, _Traits >::write().

    00102                                               {
    00103       // Generic implementation for ostreams:
    00104       (*m_stream) << stream.buffPointer();
    00105       m_stream->write(stream.data(), stream.buffPointer());
    00106     }

## Member Data Documentation

std::ostream* StreamBuffer::Ostream::m_stream`[private]`

Definition at line 93 of file StreamBuffer.h.

Referenced by dump().

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v20r2/GaudiKernel/v25r2/GaudiKernel/StreamBuffer.h