VR-Forces 4.0.4 Class Documentation
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Static Protected Attributes
DtMsgHandler Class Reference

MAK includes. More...

Inheritance diagram for DtMsgHandler:
Inheritance graph
[legend]

List of all members.

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 DtMsgHandlerdefaultInstance ()
 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 DtMsgHandlersDefaultInstance
static bool sAllowDefault
static QHash< QString, QString > sSourceCollection
static char myBuff [2048]

Detailed Description

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


Constructor & Destructor Documentation

virtual DtMsgHandler::~DtMsgHandler ( ) [virtual]

Member Function Documentation

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.

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]

Member Data Documentation

bool DtMsgHandler::myIsDump [static, protected]
QString DtMsgHandler::sOutputFile [static, protected]
bool DtMsgHandler::sAllowDefault [static, protected]
QHash<QString, QString> DtMsgHandler::sSourceCollection [static, protected]
char DtMsgHandler::myBuff[2048] [static, protected]

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)