Provides a console windows, within the CamiTK application.
More...
#include <ConsoleStream.h>
|
int_type | overflow (int_type v) |
| rewriting of the inherited method overflow More...
|
|
std::streamsize | xsputn (const char *p, std::streamsize n) |
| rewriting of the inherited method xsputn More...
|
|
Provides a console windows, within the CamiTK application.
The console widget.
Usage:
...
QApplication app(argc, argv);
std::cerr << "Oops";
ConsoleStream()
default constructor, init(..) have to be called later, before first use
Definition: ConsoleStream.h:79
Potential problem on windows (see thread)
- std::string::clear() and std::string::push_back(...) don't exist, but myString.clear() can be substituted by myString.erase(myString.begin(), myString.end()) and myString.push_back(v) can be replaced by myString += v.
- The usage of int_type seems to require a using std::ios::int_type statement.
◆ ConsoleStream() [1/2]
camitk::ConsoleStream::ConsoleStream |
( |
std::ostream * |
stream, |
|
|
QTextEdit * |
textEdit |
|
) |
| |
|
inline |
constructor to use when you are sure about both paramaters
References init().
◆ ConsoleStream() [2/2]
camitk::ConsoleStream::ConsoleStream |
( |
| ) |
|
|
inline |
default constructor, init(..) have to be called later, before first use
◆ ~ConsoleStream()
camitk::ConsoleStream::~ConsoleStream |
( |
| ) |
|
|
inline |
destructor: use free() to restore previous stream output buffer
References free().
◆ free()
void camitk::ConsoleStream::free |
( |
| ) |
|
|
inline |
◆ init()
void camitk::ConsoleStream::init |
( |
std::ostream * |
stream, |
|
|
QTextEdit * |
textEdit |
|
) |
| |
|
inline |
◆ overflow()
int_type camitk::ConsoleStream::overflow |
( |
int_type |
v | ) |
|
|
inlineprotected |
rewriting of the inherited method overflow
◆ setStream()
void camitk::ConsoleStream::setStream |
( |
std::ostream * |
stream | ) |
|
|
inline |
◆ setTextEdit()
void camitk::ConsoleStream::setTextEdit |
( |
QTextEdit * |
text_edit | ) |
|
|
inline |
set the log QTextEdit
Referenced by init().
◆ xsputn()
std::streamsize camitk::ConsoleStream::xsputn |
( |
const char * |
p, |
|
|
std::streamsize |
n |
|
) |
| |
|
inlineprotected |
rewriting of the inherited method xsputn
The documentation for this class was generated from the following file: