| # Gaudi Framework, version v21r7 |

Home |  | Generated: 22 Jan 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 74 of file StreamBuffer.h.

## Constructor & Destructor Documentation

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

Constructor.

Definition at line 79 of file StreamBuffer.h.

    00079                              : m_stream(&str)   {
    00080     }

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

Destructor.

Definition at line 82 of file StreamBuffer.h.

    00082                         {
    00083     }

## Member Function Documentation

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

Data load method.

Reimplemented from StreamBuffer::DataIO.

Definition at line 85 of file StreamBuffer.h.

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

## Member Data Documentation

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

Reference to input stream.

Definition at line 76 of file StreamBuffer.h.

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

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