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:
Inheritance graph
[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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Wed Feb 9 16:31:55 2011 for Gaudi Framework, version v22r0 by Doxygen version 1.6.2 written by Dimitri van Heesch, © 1997-2004