g2o
|
redirect a stream to a QPlainTextEdit More...
#include <stream_redirect.h>
Public Types | |
typedef std::char_traits< char >::int_type | int_type |
Public Member Functions | |
StreamRedirect (std::ostream &stream, QPlainTextEdit *te) | |
~StreamRedirect () | |
Protected Member Functions | |
virtual std::char_traits< char >::int_type | overflow (int_type v) |
virtual std::streamsize | xsputn (const char *p, std::streamsize n) |
Private Attributes | |
std::ostream & | _stream |
std::streambuf * | _old_buf |
std::string | _buffer |
QPlainTextEdit * | _te |
QMutex | _mutex |
redirect a stream to a QPlainTextEdit
Definition at line 32 of file stream_redirect.h.
typedef std::char_traits<char>::int_type StreamRedirect::int_type |
Definition at line 35 of file stream_redirect.h.
StreamRedirect::StreamRedirect | ( | std::ostream & | stream, |
QPlainTextEdit * | te | ||
) |
StreamRedirect::~StreamRedirect | ( | ) |
Definition at line 32 of file stream_redirect.cpp.
References _buffer, _old_buf, _stream, and xsputn().
|
protectedvirtual |
Definition at line 53 of file stream_redirect.cpp.
References _buffer, _mutex, and _te.
Referenced by ~StreamRedirect().
|
private |
Definition at line 48 of file stream_redirect.h.
Referenced by overflow(), xsputn(), and ~StreamRedirect().
|
private |
Definition at line 50 of file stream_redirect.h.
Referenced by overflow(), and xsputn().
|
private |
Definition at line 47 of file stream_redirect.h.
Referenced by StreamRedirect(), and ~StreamRedirect().
|
private |
Definition at line 46 of file stream_redirect.h.
Referenced by StreamRedirect(), and ~StreamRedirect().
|
private |
Definition at line 49 of file stream_redirect.h.
Referenced by overflow(), and xsputn().