| # Gaudi Framework, version v21r11 |

Home |  | Generated: 30 Sep 2010

# StreamBuffer::Istream Class Reference

Reader for standard input streams. More...

`#include <StreamBuffer.h>`

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

List of all members.

## Public Member Functions
| Istream (std::istream &str)
| Constructor.
virtual | ~Istream ()
| Destructor.
virtual void | load (StreamBuffer &stream)
| Data load method.
## Private Attributes
std::istream * | m_stream
| Reference to input stream.

## Detailed Description

Reader for standard input streams.

Definition at line 75 of file StreamBuffer.h.

## Constructor & Destructor Documentation

StreamBuffer::Istream::Istream | ( | std::istream & | str | ) | `[inline]`

Constructor.

Definition at line 80 of file StreamBuffer.h.

    00080                              : m_stream(&str)   {
    00081     }

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

Destructor.

Definition at line 83 of file StreamBuffer.h.

    00083                         {
    00084     }

## Member Function Documentation

virtual void StreamBuffer::Istream::load | ( | StreamBuffer & | stream | ) | `[inline, virtual]`

Data load method.

Reimplemented from StreamBuffer::DataIO.

Definition at line 86 of file StreamBuffer.h.

    00086                                               {
    00087       // Generic implementation for istreams:
    00088       int  len;
    00089       (*m_stream) >> len;
    00090       stream.erase();
    00091       stream.reserve(len);
    00092       m_stream->read(stream.data(),len);
    00093     }

## Member Data Documentation

std::istream* StreamBuffer::Istream::m_stream`[private]`

Reference to input stream.

Definition at line 77 of file StreamBuffer.h.

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

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