VR-Forces 4.1.1 Class Documentation
List of all members | 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]

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

DtMsgHandler::DtMsgHandler ( )
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.

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  )
staticslot
static void DtMsgHandler::addSource ( const QString &  source)
staticslot
static void DtMsgHandler::removeSource ( const QString &  source)
staticslot
void DtMsgHandler::msgItem ( const DtMsgItem )
signal
static void DtMsgHandler::printMsg ( const QString &  msg)
staticprotected
static void DtMsgHandler::vargprint ( char *  updateBuff,
const char *  cformat,
  ... 
)
staticprotected

Member Data Documentation

bool DtMsgHandler::myIsDump
staticprotected
QString DtMsgHandler::sOutputFile
staticprotected
DtMsgHandler* DtMsgHandler::sDefaultInstance
staticprotected
bool DtMsgHandler::sAllowDefault
staticprotected
QHash<QString, QString> DtMsgHandler::sSourceCollection
staticprotected
char DtMsgHandler::myBuff[2048]
staticprotected

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)