|
libcommonc++
0.7
|
A buffered stream. More...
#include <BasicBufferedStream.h++>


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... | |
A buffered stream.
This class is a subclass of std::basic_iostream and serves as the "glue" between commonc++ streams and stdc++ streams.
| BasicBufferedStream | ( | Stream & | stream, |
| size_t | bufferSize = DEFAULT_BUFFER_SIZE |
||
| ) |
Construct a new BasicBufferedStream for the given stream and buffer size.
| stream | The stream. |
| bufferSize | The buffer size. |
|
virtual |
Destructor.
|
virtual |
Close the stream for reading, writing, or both.
| mode | The close mode. |
|
static |
The default buffer size.