FeeServer::Message Class Reference
[Packets.]

#include <feeserver/fee_packet.hh>

List of all members.


Detailed Description

Message structure.
Examples:

test_client.cc.


Public Types

enum  Event {
  Info = 1, Warning = 2, Error = 4, AuditFailure = 8,
  AuditSuccess = 16, Debug = 32, Alarm = 64
}
enum  { DetectorSize = 4, SourceSize = 256, DescriptionSize = 256, DateSize = 20 }

Public Member Functions

 Message ()
virtual ~Message ()
bool FromBuffer (unsigned char *buf, size_t size)
bool ToBuffer (std::vector< unsigned char > &buf)
void Clear ()

Static Public Member Functions

static size_t Size ()
static const char * Code2String (int code)

Public Attributes

int _event_type
char _detector [DetectorSize]
char _source [SourceSize]
char _description [DescriptionSize]
char _date [DateSize]

Member Enumeration Documentation

Event types

Enumerator:
Info  Information
Warning  Warning
Error  Error
AuditFailure  Failure
AuditSuccess  Success
Debug  Debug
Alarm  Alarm

anonymous enum

Sizes of fields

Enumerator:
DetectorSize  Size of detector field
SourceSize  Size of source field
DescriptionSize  Size of description field
DateSize  Size of date field


Constructor & Destructor Documentation

FeeServer::Message::Message (  ) 

Constructor

virtual FeeServer::Message::~Message (  )  [inline, virtual]

Destructor


Member Function Documentation

bool FeeServer::Message::FromBuffer ( unsigned char *  buf,
size_t  size 
)

Initialize from a buffer

bool FeeServer::Message::ToBuffer ( std::vector< unsigned char > &  buf  ) 

Initialize from a buffer

void FeeServer::Message::Clear (  ) 

size_t FeeServer::Message::Size (  )  [static]

Size of a message

const char * FeeServer::Message::Code2String ( int  code  )  [static]

Convert the event code into a string


Member Data Documentation

Event code

char FeeServer::Message::_detector[DetectorSize]

Detector

char FeeServer::Message::_source[SourceSize]

Source

char FeeServer::Message::_description[DescriptionSize]

Description

char FeeServer::Message::_date[DateSize]

Date stamp


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

Generated on Thu Jun 26 17:02:32 2008 for FeeServer++ 0.9 by  doxygen 1.5.6