|
ug4
|
forwards data written to this stream-buffer to other stream buffers. More...
#include <ostream_buffer_splitter.h>
Inheritance diagram for ug::OStreamBufferSplitter:Public Member Functions | |
| void | flush () |
| OStreamBufferSplitter () | |
| OStreamBufferSplitter (std::streambuf *buf1, std::streambuf *buf2) | |
| virtual int_type | overflow (int_type c=traits_type::eof()) |
| void | set_buffers (std::streambuf *buf1, std::streambuf *buf2) |
| ~OStreamBufferSplitter () | |
Private Attributes | |
| char_type | m_buf [BUF_SIZE] |
| std::streambuf * | m_buf1 |
| std::streambuf * | m_buf2 |
Static Private Attributes | |
| static const int | BUF_SIZE = 128 |
forwards data written to this stream-buffer to other stream buffers.
Make sure that the buffers are initialized and ready for writing, before you intend to write anything to the buffer.
| ug::OStreamBufferSplitter::OStreamBufferSplitter | ( | std::streambuf * | buf1, |
| std::streambuf * | buf2 | ||
| ) |
References set_buffers().
| ug::OStreamBufferSplitter::~OStreamBufferSplitter | ( | ) |
References flush().
| void ug::OStreamBufferSplitter::flush | ( | ) |
References BUF_SIZE, m_buf, m_buf1, and m_buf2.
Referenced by ug::LogAssistant::flush(), set_buffers(), and ~OStreamBufferSplitter().
|
virtual |
| void ug::OStreamBufferSplitter::set_buffers | ( | std::streambuf * | buf1, |
| std::streambuf * | buf2 | ||
| ) |
References flush(), m_buf1, and m_buf2.
Referenced by ug::LogAssistant::init(), and OStreamBufferSplitter().
|
staticprivate |
Referenced by flush(), OStreamBufferSplitter(), and overflow().
|
private |
Referenced by flush(), OStreamBufferSplitter(), and overflow().
|
private |
Referenced by flush(), overflow(), and set_buffers().
|
private |
Referenced by flush(), overflow(), and set_buffers().