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

ztt::dcs::MessageStruct Struct Reference

#include <FedMessenger.hpp>

List of all members.


Detailed Description

This struct represents the composition of a message. The size of this struct depends on how many gaps the compiler inserts to fill to architecture borders. (On our first test, there seems to be gaps, who have in sum 3 bytes; total amount 620 (payload 617) - border size seems to be 4 byte).

05-04-2004: -->> Size (and so borders too) has changed ! Total size is now 620 bytes. (-> there should be no gap now.)


Public Member Functions

 MessageStruct (char *detectorName)
 MessageStruct (const MessageStruct &orig)
 MessageStruct (unsigned int evType, char *detectorName, char *origin, char *descript, char *eventDate)
MessageStructoperator= (const MessageStruct &rhs)

Public Attributes

unsigned int eventType
char detector [Msg_Detector_Size]
char source [Msg_Source_Size]
char description [Msg_Description_Size]
char date [Msg_Date_Size]


Constructor & Destructor Documentation

ztt::dcs::MessageStruct::MessageStruct char *  detectorName  )  [inline]
 

Initial constructor for MessageStruct initializes all struct members.

Parameters:
detectorName three character long string representing name of detector.

ztt::dcs::MessageStruct::MessageStruct unsigned int  evType,
char *  detectorName,
char *  origin,
char *  descript,
char *  eventDate
[inline]
 

Constructor for MessageStruct which allows to set all members. This Contructor will be mainly used by the logger, to prepare a message for the FedMessenger.

Parameters:
evType the type of the event (for details:
See also:
FedMessenger).
Parameters:
detectorName the name of the detector (size 4 byte).
origin the source, where message originally comes from (size 256 byte).
descript the description of the event (size 256 byte).
eventDate the date, when event occured (size ??? byte).


Member Function Documentation

MessageStruct& ztt::dcs::MessageStruct::operator= const MessageStruct rhs  )  [inline]
 

Assignment operator for MessageStructs. All values are copied.

Parameters:
rhs the struct, which values should be copied to this MessageStruct
Returns:
the updated MessageStruct


Member Data Documentation

char ztt::dcs::MessageStruct::date[Msg_Date_Size]
 

The date of the message ("YYYY-MM-DD hh:mm:ss\0").

char ztt::dcs::MessageStruct::description[Msg_Description_Size]
 

The message itself.

char ztt::dcs::MessageStruct::detector[Msg_Detector_Size]
 

The detector type (TRD, TPC).

unsigned int ztt::dcs::MessageStruct::eventType
 

The type of event (info, warning, error, ...).

char ztt::dcs::MessageStruct::source[Msg_Source_Size]
 

The origin of this message.


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