BasicBufferedStream< C > Class Template Reference

A buffered stream. More...

#include <BasicBufferedStream.h++>

Collaboration diagram for BasicBufferedStream< C >:

Collaboration graph
[legend]

List of all members.

Classes

class  StreamBuf
 An implementation of basic_streambuf from the standard C++ library. More...

Public Member Functions

 BasicBufferedStream (Stream &stream, size_t bufferSize=DEFAULT_BUFFER_SIZE)
 Construct a new BasicBufferedStream for the given stream and buffer size.
virtual ~BasicBufferedStream () throw ()
 Destructor.
virtual void close (IOMode mode=IOReadWrite) throw ()
 Close the stream for reading, writing, or both.

Static Public Attributes

static const size_t DEFAULT_BUFFER_SIZE = 4096
 The default buffer size.

Protected Attributes

Stream_stream
StreamBuf_buf


Detailed Description

template<typename C>
class ccxx::BasicBufferedStream< C >

A buffered stream.

This class is a subclass of std::basic_iostream and serves as the "glue" between commonc++ streams and stdc++ streams.

Author:
Mark Lindner

Constructor & Destructor Documentation

BasicBufferedStream ( Stream stream,
size_t  bufferSize = DEFAULT_BUFFER_SIZE 
) [inline]

Construct a new BasicBufferedStream for the given stream and buffer size.

Parameters:
stream The stream.
bufferSize The buffer size.

~BasicBufferedStream (  )  throw () [inline, virtual]

Destructor.


Member Function Documentation

void close ( IOMode  mode = IOReadWrite  )  throw () [inline, virtual]

Close the stream for reading, writing, or both.

Parameters:
mode The close mode.


Member Data Documentation

StreamBuf* _buf [protected]

Stream& _stream [protected]

const size_t DEFAULT_BUFFER_SIZE = 4096 [inline, static]

The default buffer size.


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

Generated on Sat Apr 17 23:03:07 2010 for libcommonc++ by  doxygen 1.5.9