Used to implement Console. More...
#include <ConsoleStream.h>
Public Member Functions | |
ConsoleStream (QtMsgType msgType, int minLevel, int level) | |
Construct a stream. | |
ConsoleStream & | operator<< (int v) |
Writes v to the stream and returns a reference to the stream. | |
ConsoleStream & | operator<< (const char *str) |
Writes str to the stream and returns a reference to the stream. | |
ConsoleStream & | operator<< (const QString &str) |
Writes str to the stream and returns a reference to the stream. | |
ConsoleStream & | operator<< (const Mdt::Error &error) |
Writes error to the stream and returns a reference to the stream. | |
Used to implement Console.
This class uses QDebug internally, but was designed to expose it in the public headers. This permits to use QDebug for debuging, and, when finished, remove the QDebug include, which permits the compiler to throw a error if we forgot a qDebug() somewhere.
Definition at line 47 of file ConsoleStream.h.