BufferedTextOutputStream< TextOutputStreamType, SIZE > Class Template Reference

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

Detailed Description

template<typename TextOutputStreamType, int SIZE = 1024>
class BufferedTextOutputStream< TextOutputStreamType, SIZE >

A wrapper for a TextOutputStream, optimised for writing a few characters at a time.

Definition at line 364 of file textstream.h.


Constructor & Destructor Documentation

template<typename TextOutputStreamType , int SIZE = 1024>
BufferedTextOutputStream< TextOutputStreamType, SIZE >::BufferedTextOutputStream ( TextOutputStreamType &  outputStream  )  [inline]

Definition at line 370 of file textstream.h.

template<typename TextOutputStreamType , int SIZE = 1024>
BufferedTextOutputStream< TextOutputStreamType, SIZE >::~BufferedTextOutputStream (  )  [inline]

Member Function Documentation

template<typename TextOutputStreamType , int SIZE = 1024>
std::size_t BufferedTextOutputStream< TextOutputStreamType, SIZE >::write ( const char *  buffer,
std::size_t  length 
) [inline]

Field Documentation

template<typename TextOutputStreamType , int SIZE = 1024>
char BufferedTextOutputStream< TextOutputStreamType, SIZE >::m_buffer[SIZE] [private]
template<typename TextOutputStreamType , int SIZE = 1024>
char* BufferedTextOutputStream< TextOutputStreamType, SIZE >::m_cur [private]
template<typename TextOutputStreamType , int SIZE = 1024>
TextOutputStreamType BufferedTextOutputStream< TextOutputStreamType, SIZE >::outputStream [private]

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

Generated by  doxygen 1.6.2