| # 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 | List of all members
StreamBuffer::DataIO Class Reference

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

`#include <StreamBuffer.h>`

Inheritance diagram for StreamBuffer::DataIO:
[legend]

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