#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. | |
| 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 |
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 | |||
| ) | [inline] |
Construct a new BasicBufferedStream for the given stream and buffer size.
| stream | The stream. | |
| bufferSize | The buffer size. |
| ~BasicBufferedStream | ( | ) | throw () [inline, virtual] |
Destructor.
| void close | ( | IOMode | mode = IOReadWrite |
) | throw () [inline, virtual] |
Close the stream for reading, writing, or both.
| mode | The close mode. |
const size_t DEFAULT_BUFFER_SIZE = 4096 [inline, static] |
The default buffer size.
1.5.9