CMS 3D CMS Logo

Public Member Functions | Private Attributes

OtherMessageBuilder Class Reference

#include <OtherMessage.h>

List of all members.

Public Member Functions

uint32 code () const
uint8msgBody ()
 OtherMessageBuilder (void *buf, uint32 code, uint32 bodySize=0)
uint32 size () const
uint8startAddress ()

Private Attributes

uint8buf_
Headerh_

Detailed Description

Other type of Messages Represented here

code 1 | size 4 | msg_body 4

For now use can provide any code, in future we may restrict 0, 1 and 2.

Definition at line 17 of file OtherMessage.h.


Constructor & Destructor Documentation

OtherMessageBuilder::OtherMessageBuilder ( void *  buf,
uint32  code,
uint32  bodySize = 0 
) [inline]

Definition at line 22 of file OtherMessage.h.

References h_.

                                                                :
  buf_((uint8*)buf),
  h_((Header*)buf) 
   {
   new (h_) Header (code, (unsigned int)sizeof(Header)+bodySize);
   }

Member Function Documentation

uint32 OtherMessageBuilder::code ( ) const [inline]

Definition at line 29 of file OtherMessage.h.

References Header::code_, and h_.

{ return h_->code_; }
uint8* OtherMessageBuilder::msgBody ( ) [inline]

Definition at line 31 of file OtherMessage.h.

References buf_.

Referenced by stor::EventServerProxy< RegInfo >::getInitMsgFromEventServer().

{ return buf_+sizeof(Header); }
uint32 OtherMessageBuilder::size ( void  ) const [inline]

Definition at line 30 of file OtherMessage.h.

References convert32(), h_, and Header::size_.

Referenced by stor::EventServerProxy< RegInfo >::getInitMsgFromEventServer().

{ return convert32(h_->size_); }
uint8* OtherMessageBuilder::startAddress ( ) [inline]

Definition at line 32 of file OtherMessage.h.

References buf_.

Referenced by stor::EventServerProxy< RegInfo >::getInitMsgFromEventServer().

{ return buf_; }

Member Data Documentation

Definition at line 35 of file OtherMessage.h.

Referenced by msgBody(), and startAddress().

Definition at line 36 of file OtherMessage.h.

Referenced by code(), OtherMessageBuilder(), and size().