BasicBufferedStream< C > Class Template Reference

A buffered stream. More...

#include <BasicBufferedStream.h++>

Inheritance diagram for BasicBufferedStream< C >:
Inheritance 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
 The default buffer size.

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 
)

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

Parameters:
stream The stream.
bufferSize The buffer size.
virtual ~BasicBufferedStream (  )  throw () [virtual]

Destructor.


Member Function Documentation

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

Close the stream for reading, writing, or both.

Parameters:
mode The close mode.

Member Data Documentation

const size_t DEFAULT_BUFFER_SIZE [static]

The default buffer size.


The documentation for this class was generated from the following file:
Generated on Sat Nov 26 16:49:08 2011 for libcommonc++ by  doxygen 1.6.3