![]() |
VR-Forces 4.0.4 Class Documentation
|
MAK includes. More...

Public Slots | |
| static void | allowByDefault (bool) |
| static void | addSource (const QString &source) |
| static void | removeSource (const QString &source) |
Signals | |
| void | msgItem (const DtMsgItem &) |
Public Member Functions | |
| DtMsgHandler () | |
| virtual | ~DtMsgHandler () |
Static Public Member Functions | |
| static void | setDump (bool b) |
| Set whether or not you should dump the message to standard out in addition to emitting a signal. | |
| static void | setOutputFile (const QString &filename, bool clear=false) |
| If printing in immediate mode, we print to this file. | |
| static DtMsgHandler * | defaultInstance () |
| Needed since only instances can emit signals. | |
| static void | cleanupDefaultInstance () |
| static void | generalMsg (const QString &msg, const QString &source) |
| Various types of messages. | |
| static void | debug (const QString &msg) |
| static void | info (const QString &msg) |
| debugging msg | |
| static void | verbose (const QString &msg) |
| information | |
| static void | warn (const QString &msg) |
| verbose | |
| static void | config (const QString &msg) |
| warning | |
| static void | error (const QString &msg) |
| configuration error | |
| static void | status (const QString &msg) |
| error | |
| static void | info (const char *cformat,...) |
| status message | |
| static void | warn (const char *cformat,...) |
Static Protected Member Functions | |
| static void | printMsg (const QString &msg) |
| static void | vargprint (char *updateBuff, const char *cformat,...) |
Static Protected Attributes | |
| static bool | myIsDump |
| static QString | sOutputFile |
| static DtMsgHandler * | sDefaultInstance |
| static bool | sAllowDefault |
| static QHash< QString, QString > | sSourceCollection |
| static char | myBuff [2048] |
MAK includes.
Qt includes Handles all text messages passed by the system. This could be internal warning or error messages, as well as exercise messages, or any other information you want passed to the user.
This class can dump to standard output as well as emit a signal that you can hook up to another object for a more robust way of viewing your messages
| virtual DtMsgHandler::~DtMsgHandler | ( | ) | [virtual] |
| static void DtMsgHandler::setDump | ( | bool | b | ) | [static] |
Set whether or not you should dump the message to standard out in addition to emitting a signal.
| static void DtMsgHandler::setOutputFile | ( | const QString & | filename, |
| bool | clear = false |
||
| ) | [static] |
If printing in immediate mode, we print to this file.
| static DtMsgHandler* DtMsgHandler::defaultInstance | ( | ) | [static] |
Needed since only instances can emit signals.
| static void DtMsgHandler::cleanupDefaultInstance | ( | ) | [static] |
| static void DtMsgHandler::generalMsg | ( | const QString & | msg, |
| const QString & | source | ||
| ) | [static] |
Various types of messages.
| static void DtMsgHandler::debug | ( | const QString & | msg | ) | [static] |
| static void DtMsgHandler::info | ( | const QString & | msg | ) | [static] |
debugging msg
| static void DtMsgHandler::verbose | ( | const QString & | msg | ) | [static] |
information
| static void DtMsgHandler::warn | ( | const QString & | msg | ) | [static] |
verbose
| static void DtMsgHandler::config | ( | const QString & | msg | ) | [static] |
warning
| static void DtMsgHandler::error | ( | const QString & | msg | ) | [static] |
configuration error
| static void DtMsgHandler::status | ( | const QString & | msg | ) | [static] |
error
| static void DtMsgHandler::info | ( | const char * | cformat, |
| ... | |||
| ) | [static] |
status message
For backwards compatibility with vrlink. Easy to use, but don't translate well.
| static void DtMsgHandler::warn | ( | const char * | cformat, |
| ... | |||
| ) | [static] |
| static void DtMsgHandler::allowByDefault | ( | bool | ) | [static, slot] |
| static void DtMsgHandler::addSource | ( | const QString & | source | ) | [static, slot] |
| static void DtMsgHandler::removeSource | ( | const QString & | source | ) | [static, slot] |
| void DtMsgHandler::msgItem | ( | const DtMsgItem & | ) | [signal] |
| static void DtMsgHandler::printMsg | ( | const QString & | msg | ) | [static, protected] |
| static void DtMsgHandler::vargprint | ( | char * | updateBuff, |
| const char * | cformat, | ||
| ... | |||
| ) | [static, protected] |
bool DtMsgHandler::myIsDump [static, protected] |
QString DtMsgHandler::sOutputFile [static, protected] |
DtMsgHandler* DtMsgHandler::sDefaultInstance [static, protected] |
bool DtMsgHandler::sAllowDefault [static, protected] |
QHash<QString, QString> DtMsgHandler::sSourceCollection [static, protected] |
char DtMsgHandler::myBuff[2048] [static, protected] |