A wrapper for a TextOutputStream, optimised for writing a few characters at a time. More...
#include <textstream.h>
Public Member Functions | |
BufferedTextOutputStream (TextOutputStreamType &outputStream) | |
~BufferedTextOutputStream () | |
std::size_t | write (const char *buffer, std::size_t length) |
Private Attributes | |
TextOutputStreamType | outputStream |
char | m_buffer [SIZE] |
char * | m_cur |
A wrapper for a TextOutputStream, optimised for writing a few characters at a time.
Definition at line 364 of file textstream.h.
BufferedTextOutputStream< TextOutputStreamType, SIZE >::BufferedTextOutputStream | ( | TextOutputStreamType & | outputStream | ) | [inline] |
Definition at line 370 of file textstream.h.
BufferedTextOutputStream< TextOutputStreamType, SIZE >::~BufferedTextOutputStream | ( | ) | [inline] |
std::size_t BufferedTextOutputStream< TextOutputStreamType, SIZE >::write | ( | const char * | buffer, | |
std::size_t | length | |||
) | [inline] |
char BufferedTextOutputStream< TextOutputStreamType, SIZE >::m_buffer[SIZE] [private] |
Definition at line 366 of file textstream.h.
Referenced by BufferedTextOutputStream< TextOutputStreamType, SIZE >::write(), and BufferedTextOutputStream< TextOutputStreamType, SIZE >::~BufferedTextOutputStream().
char* BufferedTextOutputStream< TextOutputStreamType, SIZE >::m_cur [private] |
Definition at line 367 of file textstream.h.
Referenced by BufferedTextOutputStream< TextOutputStreamType, SIZE >::write(), and BufferedTextOutputStream< TextOutputStreamType, SIZE >::~BufferedTextOutputStream().
TextOutputStreamType BufferedTextOutputStream< TextOutputStreamType, SIZE >::outputStream [private] |
Definition at line 365 of file textstream.h.
Referenced by BufferedTextOutputStream< TextOutputStreamType, SIZE >::write(), and BufferedTextOutputStream< TextOutputStreamType, SIZE >::~BufferedTextOutputStream().