QOnlineMessenger Class Reference

Inheritance diagram for QOnlineMessenger:

QEleConfigHandler QLCFlowController QBoloCheckLoadCurve QEleCheckLoadCurve

List of all members.


Detailed Description

messenger for non-module classes used by online diana. Messages can be sent to apollo message server too, but by default they are only sent to QMessageHandler.

Author:
Sergio Di Domizio

Public Member Functions

 QOnlineMessenger (const std::string &sender)
 constructor with name of calling class
virtual ~QOnlineMessenger ()
 dtor
void SetVerbosity (MsgLevel level)
 set verbosity level
void EnableMsgServer (bool enable)
void OLDebug (const char *descr,...)
 send debug message with printf syntax
void OLInfo (const char *descr,...)
 Send an info message with printf syntax.
void OLWarn (const char *descr,...)
 Send a warning message with printf syntax.
void OLError (const char *descr,...)
 Send error message with printf syntax.
void OLPanic (const char *descr,...)
 Send panic message (stops the framework) with printf syntax.
MsgLevel GetVerbosity () const
 get verbosity level

Private Member Functions

void SendNetworkMessage (MsgLevel level, const std::string &msg)

Private Attributes

MsgLevel fVerbosity
bool fMsgServerEnabled
std::string fClassName

Constructor & Destructor Documentation

QOnlineMessenger::QOnlineMessenger ( const std::string &  sender  ) 

constructor with name of calling class

Parameters:
sender name with which the message will be sent to QMessageHandler. This parameter has no effect on the messages sent to the Apollo message logger, since in that case only the name of the process is taken into account.


Member Function Documentation

void QOnlineMessenger::EnableMsgServer ( bool  enable  )  [inline]

enable/disable message server

References fMsgServerEnabled.

Referenced by QEleConfigHandler::QEleConfigHandler(), and QLCFlowController::QLCFlowController().

void QOnlineMessenger::SendNetworkMessage ( MsgLevel  level,
const std::string &  msg 
) [private]

send message to apollo message server. Has effect only if fMsgServerEnabled is true

References fMsgServerEnabled, QApolloMessenger::GetInstance(), QApolloMessenger::Send(), and QApolloMessenger::SetName().

Referenced by OLDebug(), OLError(), OLInfo(), OLPanic(), and OLWarn().


Member Data Documentation

MsgLevel QOnlineMessenger::fVerbosity [private]

minimum verbosity level for a message to be sent (default: InfoMsg)

Referenced by GetVerbosity(), OLDebug(), OLError(), OLInfo(), OLWarn(), and SetVerbosity().

determines whether or not messages are sent to apollo message server

Referenced by EnableMsgServer(), and SendNetworkMessage().

std::string QOnlineMessenger::fClassName [private]

name of the class sending the message -- only affect diana messages

Referenced by OLDebug(), OLError(), OLInfo(), OLPanic(), and OLWarn().


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

Generated on Tue Nov 16 10:50:07 2010 for CUORE Software by  doxygen 1.5.6