#include <Messages.h>
Public Types | |
enum | Codes { INVALID = 0, INIT = 1, EVENT = 2, DONE = 3 } |
Public Member Functions | |
int | codeSize () const |
Codes | getCode () const |
MsgCode (void *buffer) | |
MsgCode (void *buffer, int size, Codes c) | |
MsgCode (void *buffer, int size) | |
MsgCode (void *buffer, Codes c) | |
void * | payload () const |
int | payloadSize () const |
void | setCode (Codes c) |
int | totalSize () const |
Private Attributes | |
unsigned char * | buffer_ |
int | size_ |
Definition at line 55 of file Messages.h.
enum edm::MsgCode::Codes |
edm::MsgCode::MsgCode | ( | void * | buffer, |
int | size | ||
) | [inline] |
edm::MsgCode::MsgCode | ( | void * | buffer | ) | [inline, explicit] |
Definition at line 69 of file Messages.h.
edm::MsgCode::MsgCode | ( | void * | buffer, |
Codes | c | ||
) | [inline] |
edm::MsgCode::MsgCode | ( | void * | buffer, |
int | size, | ||
Codes | c | ||
) | [inline] |
int edm::MsgCode::codeSize | ( | ) | const [inline] |
Definition at line 96 of file Messages.h.
Referenced by edm::InitMsg::msgSize(), and edm::EventMsg::msgSize().
{ return 4; }
Codes edm::MsgCode::getCode | ( | ) | const [inline] |
Definition at line 88 of file Messages.h.
References buffer_, and edm::decodeInt().
Referenced by edm::JobHeaderDecoder::decodeJobHeader().
void* edm::MsgCode::payload | ( | ) | const [inline] |
Definition at line 94 of file Messages.h.
References buffer_.
Referenced by edm::EventMsg::data(), and edm::InitMsg::data().
{ return &buffer_[4]; }
int edm::MsgCode::payloadSize | ( | ) | const [inline] |
Definition at line 95 of file Messages.h.
References size_.
Referenced by edm::InitMsg::dataSize().
{ return size_; }
void edm::MsgCode::setCode | ( | Codes | c | ) | [inline] |
Definition at line 83 of file Messages.h.
References buffer_, and edm::encodeInt().
Referenced by edm::EventMsg::EventMsg(), edm::InitMsg::InitMsg(), and MsgCode().
int edm::MsgCode::totalSize | ( | ) | const [inline] |
unsigned char* edm::MsgCode::buffer_ [private] |
Definition at line 100 of file Messages.h.
int edm::MsgCode::size_ [private] |
Definition at line 101 of file Messages.h.
Referenced by MsgCode(), payloadSize(), and totalSize().