CMS 3D CMS Logo

Public Member Functions | Private Attributes

OtherMessageView Class Reference

#include <OtherMessage.h>

List of all members.

Public Member Functions

uint32 bodySize () const
uint32 code () const
uint8msgBody () const
 OtherMessageView (void *buf)
uint32 size () const
uint8startAddress ()

Private Attributes

uint8buf_
Headerhead_
uint8msg_body_start_

Detailed Description

Definition at line 41 of file OtherMessage.h.


Constructor & Destructor Documentation

OtherMessageView::OtherMessageView ( void *  buf) [inline]

Definition at line 47 of file OtherMessage.h.

References buf_, and msg_body_start_.

                             : 
  buf_((uint8*)buf), 
  head_((Header*)buf) 
  { 
   msg_body_start_ = buf_ + sizeof(Header); 
  } 

Member Function Documentation

uint32 OtherMessageView::bodySize ( ) const [inline]

Definition at line 58 of file OtherMessage.h.

References buf_, convert32(), head_, msg_body_start_, and Header::size_.

                          {
    return convert32(head_->size_) - (msg_body_start_ - buf_);
  }
uint32 OtherMessageView::code ( ) const [inline]

Definition at line 54 of file OtherMessage.h.

References Header::code_, and head_.

{ return head_->code_; } 
uint8* OtherMessageView::msgBody ( ) const [inline]

Definition at line 56 of file OtherMessage.h.

References msg_body_start_.

{return msg_body_start_; } 
uint32 OtherMessageView::size ( void  ) const [inline]

Definition at line 55 of file OtherMessage.h.

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

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

Definition at line 57 of file OtherMessage.h.

References buf_.

{ return buf_; }

Member Data Documentation

Definition at line 63 of file OtherMessage.h.

Referenced by bodySize(), OtherMessageView(), and startAddress().

Definition at line 65 of file OtherMessage.h.

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

Definition at line 64 of file OtherMessage.h.

Referenced by bodySize(), msgBody(), and OtherMessageView().