| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 2011

Public Member Functions | Private Attributes

# 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.

                                 : m_stream(&str)   {
        }

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

Destructor.

Definition at line 83 of file StreamBuffer.h.

                            {
        }

## 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.

                                                  {
          // Generic implementation for istreams:
          int  len;
          (*m_stream) >> len;
          stream.erase();
          stream.reserve(len);
          m_stream->read(stream.data(),len);
        }

## 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_v22r4/GaudiKernel/GaudiKernel/StreamBuffer.h

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines