| # Gaudi Framework, version v21r9 |

Home |  | Generated: 3 May 2010

# 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 42 of file StreamBuffer.h.

## Constructor & Destructor Documentation

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

Standard constructor.

Definition at line 45 of file StreamBuffer.h.

    00045                 {
    00046     }

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

Standard destructor.

Definition at line 48 of file StreamBuffer.h.

    00048                          {
    00049     }

## Member Function Documentation

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

Throw Exception.

Definition at line 51 of file StreamBuffer.h.

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

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

Serialization method: loads/dumps streambuffer content.

Definition at line 55 of file StreamBuffer.h.

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

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

Template function to load stream data.

Reimplemented in StreamBuffer::Istream.

Definition at line 64 of file StreamBuffer.h.

    00064                                        {
    00065       badStreamMode();
    00066     }

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

Template function to save stream data.

Reimplemented in StreamBuffer::Ostream.

Definition at line 68 of file StreamBuffer.h.

    00068                                        {
    00069       badStreamMode();
    00070     }

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

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