| # Gaudi Framework, version v22r2 |

Home |  | Generated: Tue May 10 2011

Public Member Functions

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

                    {
        }

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

Standard destructor.

Definition at line 49 of file StreamBuffer.h.

                             {
        }

## Member Function Documentation

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

Throw Exception.

Definition at line 52 of file StreamBuffer.h.

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

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.

                                           {
          badStreamMode();
        }

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.

                                           {
          badStreamMode();
        }

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

Serialization method: loads/dumps streambuffer content.

Definition at line 56 of file StreamBuffer.h.

                                                       {
          if (stream.isReading())
            load(stream);
          else if (stream.isWriting())
            dump(stream);
          else
            badStreamMode();
        }

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

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

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