All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
StreamBuffer::Ostream Class Reference

Writer for standard output streams. More...

#include <GaudiKernel/StreamBuffer.h>

Inheritance diagram for StreamBuffer::Ostream:
Collaboration diagram for StreamBuffer::Ostream:

Public Member Functions

 Ostream (std::ostream &str)
 Standard constructor: pass reference to stream object. More...
 
virtual ~Ostream ()
 Standard Destructor. More...
 
virtual void dump (StreamBuffer &stream)
 Output dumper. More...
 
- Public Member Functions inherited from StreamBuffer::DataIO
 DataIO ()
 Standard constructor. More...
 
virtual ~DataIO ()
 Standard destructor. More...
 
void badStreamMode ()
 Throw Exception. More...
 
virtual void serialize (StreamBuffer &stream)
 Serialization method: loads/dumps streambuffer content. More...
 
virtual void load (StreamBuffer &)
 Template function to load stream data. More...
 

Private Attributes

std::ostream * m_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.

100  : m_stream(&str) {
101  }
std::ostream * m_stream
Definition: StreamBuffer.h:97
virtual StreamBuffer::Ostream::~Ostream ( )
inlinevirtual

Standard Destructor.

Definition at line 103 of file StreamBuffer.h.

103  {
104  }

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.

106  {
107  // Generic implementation for ostreams:
108  (*m_stream) << stream.buffPointer();
109  m_stream->write(stream.data(), stream.buffPointer());
110  }
std::ostream * m_stream
Definition: StreamBuffer.h:97
long buffPointer() const
Retrieve current buffer pointer.
Definition: StreamBuffer.h:289
const char * data() const
Read access to data buffer.
Definition: StreamBuffer.h:221

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: