| # Gaudi Framework, version v22r0 |

Home |  | Generated: 9 Feb 2011

# StreamBuffer::DataIO Class Reference

A small base class to handle generic data streaming. More...

`#include <StreamBuffer.h>`

Inheritance diagram for StreamBuffer::DataIO:
[legend]

List of all members.

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

## Detailed Description

A small base class to handle generic data streaming.

Definition at line 43 of file StreamBuffer.h.

## Constructor & Destructor Documentation

StreamBuffer::DataIO::DataIO | ( |  | ) | `[inline]`

Standard constructor.

Definition at line 46 of file StreamBuffer.h.

    00046                 {
    00047     }

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

Standard destructor.

Definition at line 49 of file StreamBuffer.h.

    00049                          {
    00050     }

## Member Function Documentation

void StreamBuffer::DataIO::badStreamMode | ( |  | ) | `[inline]`

Throw Exception.

Definition at line 52 of file StreamBuffer.h.

    00052                             {
    00053       throw("Not acceptable stream mode!");
    00054     }

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

Template function to save stream data.

Reimplemented in StreamBuffer::Ostream.

Definition at line 69 of file StreamBuffer.h.

    00069                                        {
    00070       badStreamMode();
    00071     }

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

Template function to load stream data.

Reimplemented in StreamBuffer::Istream.

Definition at line 65 of file StreamBuffer.h.

    00065                                        {
    00066       badStreamMode();
    00067     }

virtual void StreamBuffer::DataIO::serialize | ( | StreamBuffer & | stream | ) | `[inline, virtual]`

Serialization method: loads/dumps streambuffer content.

Definition at line 56 of file StreamBuffer.h.

    00056                                                    {
    00057       if (stream.isReading())
    00058         load(stream);
    00059       else if (stream.isWriting())
    00060         dump(stream);
    00061       else
    00062         badStreamMode();
    00063     }

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

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

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