Gaudi Framework, version v24r2

Home   Generated: Wed Dec 4 2013
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
StreamBuffer::Ostream Class Reference

Writer for standard output streams. More...

#include <StreamBuffer.h>

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

Public Member Functions

 Ostream (std::ostream &str)
 Standard constructor: pass reference to stream object.
 
virtual ~Ostream ()
 Standard Destructor.
 
virtual void dump (StreamBuffer &stream)
 Output dumper.
 
- Public Member Functions inherited from StreamBuffer::DataIO
 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.
 

Private Attributes

std::ostreamm_stream
 

Detailed Description

Writer for standard output streams.

Definition at line 96 of file StreamBuffer.h.

Constructor & Destructor Documentation

StreamBuffer::Ostream::Ostream ( std::ostream str)
inline

Standard constructor: pass reference to stream object.

Definition at line 100 of file StreamBuffer.h.

: m_stream(&str) {
}
virtual StreamBuffer::Ostream::~Ostream ( )
inlinevirtual

Standard Destructor.

Definition at line 103 of file StreamBuffer.h.

{
}

Member Function Documentation

virtual void StreamBuffer::Ostream::dump ( StreamBuffer stream)
inlinevirtual

Output dumper.

Reimplemented from StreamBuffer::DataIO.

Definition at line 106 of file StreamBuffer.h.

{
// Generic implementation for ostreams:
(*m_stream) << stream.buffPointer();
m_stream->write(stream.data(), stream.buffPointer());
}

Member Data Documentation

std::ostream* StreamBuffer::Ostream::m_stream
private

Definition at line 97 of file StreamBuffer.h.


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

Generated at Wed Dec 4 2013 14:33:19 for Gaudi Framework, version v24r2 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004