libcommonc++  0.7
BasicBufferedStream< C > Class Template Reference

A buffered stream. More...

#include <BasicBufferedStream.h++>

Inheritance diagram for BasicBufferedStream< C >:
Collaboration diagram for BasicBufferedStream< C >:

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. More...
 
virtual ~BasicBufferedStream ()
 Destructor. More...
 
virtual void close (IOMode mode=IOReadWrite)
 Close the stream for reading, writing, or both. More...
 

Static Public Attributes

static const size_t DEFAULT_BUFFER_SIZE
 The default buffer size. More...
 

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()

BasicBufferedStream ( Stream stream,
size_t  bufferSize = DEFAULT_BUFFER_SIZE 
)

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

Parameters
streamThe stream.
bufferSizeThe buffer size.

◆ ~BasicBufferedStream()

virtual ~BasicBufferedStream ( )
virtual

Destructor.

Member Function Documentation

◆ close()

virtual void close ( IOMode  mode = IOReadWrite)
virtual

Close the stream for reading, writing, or both.

Parameters
modeThe close mode.

Member Data Documentation

◆ DEFAULT_BUFFER_SIZE

const size_t DEFAULT_BUFFER_SIZE
static

The default buffer size.


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