Gaudi Framework, version v21r8

Home   Generated: 17 Mar 2010

StreamBuffer::Istream Class Reference

Reader for standard input streams. More...

#include <StreamBuffer.h>

Inheritance diagram for StreamBuffer::Istream:

Inheritance graph
[legend]
Collaboration diagram for StreamBuffer::Istream:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Istream (std::istream &str)
 Constructor.
virtual ~Istream ()
 Destructor.
virtual void load (StreamBuffer &stream)
 Data load method.

Private Attributes

std::istreamm_stream
 Reference to input stream.


Detailed Description

Reader for standard input streams.

Definition at line 74 of file StreamBuffer.h.


Constructor & Destructor Documentation

StreamBuffer::Istream::Istream ( std::istream str  )  [inline]

Constructor.

Definition at line 79 of file StreamBuffer.h.

00079                              : m_stream(&str)   {
00080     }

virtual StreamBuffer::Istream::~Istream (  )  [inline, virtual]

Destructor.

Definition at line 82 of file StreamBuffer.h.

00082                         {
00083     }


Member Function Documentation

virtual void StreamBuffer::Istream::load ( StreamBuffer stream  )  [inline, virtual]

Data load method.

Reimplemented from StreamBuffer::DataIO.

Definition at line 85 of file StreamBuffer.h.

00085                                               {
00086       // Generic implementation for istreams:
00087       int  len;
00088       (*m_stream) >> len;
00089       stream.erase();
00090       stream.reserve(len);
00091       m_stream->read(stream.data(),len);
00092     }


Member Data Documentation

Reference to input stream.

Definition at line 76 of file StreamBuffer.h.


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

Generated at Wed Mar 17 18:19:30 2010 for Gaudi Framework, version v21r8 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004