30 #ifndef __CLAW_BUFFERED_OSTREAM_HPP__
31 #define __CLAW_BUFFERED_OSTREAM_HPP__
39 template<
typename Stream >
44 typedef Stream stream_type;
53 void write(
const char* p,
unsigned int n);
59 stream_type& m_stream;
76 #endif // __CLAW_BUFFERED_OSTREAM_HPP__
void write(T v)
Write somethnig in the buffer.
void flush()
Write the data from the buffer in the stream.
~buffered_ostream()
Destructor.
Implementation of the claw::buffered_ostream class.
buffered_ostream(stream_type &f, unsigned int buffer_size=1024)
Constructor.
This class is made to help writing in ostreams with a buffer.