| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

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

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
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]

## Public Member Functions
| Istream (std::istream &str)
| Constructor.
virtual | ~Istream ()
| Destructor.
virtual void | load (StreamBuffer &stream)
| Data load method.
Public Member Functions inherited from StreamBuffer::DataIO
| DataIO ()
| Standard constructor.
virtual | ~DataIO ()
| Standard destructor.
void | badStreamMode ()
| Throw Exception.
virtual void | serialize (StreamBuffer &stream)
| Serialization method: loads/dumps streambuffer content.
virtual void | dump (StreamBuffer &)
| Template function to save stream data.

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