Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

ztt::dcs::FedMessenger Class Reference

#include <FedMessenger.hpp>

List of all members.


Detailed Description

This class is responsible for delivery of messages of all loglevels to the upper layers. They are published all via one DimService. The structure of the log- information is:
The logmessages are received from the Logger, the FedMessenger keeps a copy of the current log-entry. The FedMessenger inherits the publishing facility from its base class (DimService).

!! Eventually working on a struct may cause errors in member access due to unpredictable distance between members in memory. !! See "Large-Scale C++ Software Design" by John Lakos (Addison-Wesley)

Date:
4-12-2003
Author:
Christian Kofler, Sebastian Bablok


Public Member Functions

 FedMessenger (char *detectorName, char *serviceName, FedServer *server)
virtual ~FedMessenger ()
void setMessage (MessageStruct *pMsg)
void setLogLevel (unsigned int level)


Constructor & Destructor Documentation

ztt::dcs::FedMessenger::FedMessenger char *  detectorName,
char *  serviceName,
FedServer server
[inline]
 

Constructor for the FedMessenger.

Parameters:
detectorName the name of the detector
serviceName the name of this service
server pointer to the hosting FedServer

virtual ztt::dcs::FedMessenger::~FedMessenger  )  [virtual]
 

Destructor for FedMessenger.


Member Function Documentation

void ztt::dcs::FedMessenger::setLogLevel unsigned int  level  ) 
 

Sets the desired logging level. Only messages of the this level or above will be delivered further. (NOTE: The log level Msg_Alarm is always set)

Parameters:
level the desired log-level.

void ztt::dcs::FedMessenger::setMessage MessageStruct pMsg  ) 
 

Sets a new message for this message - service and updates the service.

Parameters:
pMsg pointer to a structure, containing the new message.


The documentation for this class was generated from the following file:
Generated on Fri Mar 30 02:54:34 2007 for InterComLayer by doxygen 1.3.5