Provides a console windows, within the CamiTK application. More...
#include <ConsoleStream.h>
Public Member Functions | |
| ConsoleStream () | |
| default constructor, init(..) have to be called later, before first use | |
| ConsoleStream (std::ostream *stream, QTextEdit *textEdit) | |
| constructor to use when you are sure about both paramaters | |
| void | free () |
| reset the state as it was before (stream use the old buffer again) | |
| void | init (std::ostream *stream, QTextEdit *textEdit) |
| initialize ConsoleStream using both input stream and output text edit | |
| void | setStream (std::ostream *stream) |
| set the value for the buffer to be replaced by the ConsoleStream | |
| void | setTextEdit (QTextEdit *text_edit) |
| set the log QTextEdit | |
| ~ConsoleStream () | |
| destructor: use free() to restore previous stream output buffer | |
Protected Member Functions | |
| int_type | overflow (int_type v) |
| rewriting of the inherited method overflow | |
| std::streamsize | xsputn (const char *p, std::streamsize n) |
| rewriting of the inherited method xsputn | |
Provides a console windows, within the CamiTK application.
Usage:
Potential problem on windows (see thread)
|
inline |
constructor to use when you are sure about both paramaters
References init().
|
inline |
default constructor, init(..) have to be called later, before first use
|
inline |
|
inline |
reset the state as it was before (stream use the old buffer again)
Referenced by camitk::MainWindow::redirectToConsole(), setStream(), and ~ConsoleStream().
|
inline |
initialize ConsoleStream using both input stream and output text edit
References setStream(), and setTextEdit().
Referenced by ConsoleStream(), and camitk::MainWindow::redirectToConsole().
|
inlineprotected |
rewriting of the inherited method overflow
|
inline |
set the value for the buffer to be replaced by the ConsoleStream
References free().
Referenced by init().
|
inline |
set the log QTextEdit
Referenced by init().
|
inlineprotected |
rewriting of the inherited method xsputn