33 #ifndef __H__UG_OSTREAM_BUFFER_SPLITTER__
34 #define __H__UG_OSTREAM_BUFFER_SPLITTER__
62 void set_buffers(std::streambuf* buf1, std::streambuf* buf2);
64 virtual int_type
overflow(int_type c = traits_type::eof());
forwards data written to this stream-buffer to other stream buffers.
Definition: ostream_buffer_splitter.h:51
void set_buffers(std::streambuf *buf1, std::streambuf *buf2)
Definition: ostream_buffer_splitter.cpp:68
~OStreamBufferSplitter()
Definition: ostream_buffer_splitter.cpp:52
std::streambuf * m_buf2
Definition: ostream_buffer_splitter.h:69
static const int BUF_SIZE
Definition: ostream_buffer_splitter.h:67
void flush()
Definition: ostream_buffer_splitter.cpp:57
virtual int_type overflow(int_type c=traits_type::eof())
Definition: ostream_buffer_splitter.cpp:77
std::streambuf * m_buf1
Definition: ostream_buffer_splitter.h:68
OStreamBufferSplitter()
Definition: ostream_buffer_splitter.cpp:40
char_type m_buf[BUF_SIZE]
Definition: ostream_buffer_splitter.h:70