Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals

dcs::fee::MessageStruct Struct Reference

#include <MessageStruct.hpp>


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 (unsigned int evType, char *detectorName, char *origin, char *descript, char *eventDate)
 MessageStruct (const MessageStruct &msg)
MessageStructoperator= (const MessageStruct &rhs)

Data Fields

unsigned int eventType
char detector [4]
char source [256]
char description [256]
char date [20]


Constructor & Destructor Documentation

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

Initial constructor for MessageStruct initializes all struct members.

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

dcs::fee::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.
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 20 byte).

dcs::fee::MessageStruct::MessageStruct const MessageStruct msg  )  [inline]
 

Copy constructor for a MessageStruct.

Parameters:
msg the message struct to produce a copy from.


Member Function Documentation

MessageStruct& dcs::fee::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


Field Documentation

char dcs::fee::MessageStruct::date[ 20 ]
 

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

char dcs::fee::MessageStruct::description[ 256 ]
 

The message itself.

char dcs::fee::MessageStruct::detector[ 4 ]
 

The detector type (TRD, TPC).

unsigned int dcs::fee::MessageStruct::eventType
 

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

char dcs::fee::MessageStruct::source[ 256 ]
 

The origin of this message.


The documentation for this struct was generated from the following file:
Generated on Thu Mar 29 19:21:15 2007 for Fee Client Library by doxygen 1.3.5