|
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 42 of file stream_redirect.h.
| typedef std::char_traits<char>::int_type StreamRedirect::int_type |
Definition at line 44 of file stream_redirect.h.
| StreamRedirect::StreamRedirect | ( | std::ostream & | stream, |
| QPlainTextEdit * | te | ||
| ) |
Definition at line 34 of file stream_redirect.cpp.
| StreamRedirect::~StreamRedirect | ( | ) |
Definition at line 40 of file stream_redirect.cpp.
|
protectedvirtual |
|
protectedvirtual |
Definition at line 57 of file stream_redirect.cpp.
References _buffer, _mutex, and _te.
Referenced by ~StreamRedirect().
|
private |
Definition at line 57 of file stream_redirect.h.
Referenced by overflow(), xsputn(), and ~StreamRedirect().
|
private |
Definition at line 59 of file stream_redirect.h.
Referenced by overflow(), and xsputn().
|
private |
Definition at line 56 of file stream_redirect.h.
Referenced by StreamRedirect(), and ~StreamRedirect().
|
private |
Definition at line 55 of file stream_redirect.h.
Referenced by StreamRedirect(), and ~StreamRedirect().
|
private |
Definition at line 58 of file stream_redirect.h.
Referenced by overflow(), and xsputn().