qlib::ace::Base_Packet< H, B > Class Template Reference

base class for all communication packet More...

#include <Base_Packet.h>

List of all members.

Public Types

typedef H header_type
typedef header_typeheader_pointer
typedef B body_type
typedef body_typebody_pointer

Public Member Functions

virtual ~Base_Packet ()
header_pointer header (void)
void header (header_pointer hdr)
body_pointer body (void)
void body (body_pointer bd)
virtual int parse (const void *buffer, ssize_t length)=0
virtual int parse (ACE_Message_Block *mb, ssize_t length=0)=0
ACE_Message_Block * to_mb (void)

Private Attributes

header_typeheader_
body_typebody_


Detailed Description

template<typename H, typename B>
class qlib::ace::Base_Packet< H, B >

base class for all communication packet

Definition at line 33 of file Base_Packet.h.


Member Typedef Documentation

template<typename H, typename B>
typedef H qlib::ace::Base_Packet< H, B >::header_type

Definition at line 34 of file Base_Packet.h.

template<typename H, typename B>
typedef header_type* qlib::ace::Base_Packet< H, B >::header_pointer

Definition at line 35 of file Base_Packet.h.

template<typename H, typename B>
typedef B qlib::ace::Base_Packet< H, B >::body_type

Definition at line 36 of file Base_Packet.h.

template<typename H, typename B>
typedef body_type* qlib::ace::Base_Packet< H, B >::body_pointer

Definition at line 37 of file Base_Packet.h.


Constructor & Destructor Documentation

template<typename H, typename B>
virtual qlib::ace::Base_Packet< H, B >::~Base_Packet (  )  [inline, virtual]

Definition at line 41 of file Base_Packet.h.

References qlib::ace::Base_Packet< H, B >::body_, and qlib::ace::Base_Packet< H, B >::header_.


Member Function Documentation

template<typename H, typename B>
header_pointer qlib::ace::Base_Packet< H, B >::header ( void   )  [inline]

Definition at line 46 of file Base_Packet.h.

References qlib::ace::Base_Packet< H, B >::header_.

template<typename H, typename B>
void qlib::ace::Base_Packet< H, B >::header ( header_pointer  hdr  )  [inline]

Definition at line 47 of file Base_Packet.h.

References qlib::ace::Base_Packet< H, B >::header_.

template<typename H, typename B>
body_pointer qlib::ace::Base_Packet< H, B >::body ( void   )  [inline]

Definition at line 48 of file Base_Packet.h.

References qlib::ace::Base_Packet< H, B >::body_.

template<typename H, typename B>
void qlib::ace::Base_Packet< H, B >::body ( body_pointer  bd  )  [inline]

Definition at line 49 of file Base_Packet.h.

References qlib::ace::Base_Packet< H, B >::body_.

template<typename H, typename B>
virtual int qlib::ace::Base_Packet< H, B >::parse ( const void *  buffer,
ssize_t  length 
) [pure virtual]

template<typename H, typename B>
virtual int qlib::ace::Base_Packet< H, B >::parse ( ACE_Message_Block *  mb,
ssize_t  length = 0 
) [pure virtual]

template<typename H, typename B>
ACE_Message_Block* qlib::ace::Base_Packet< H, B >::to_mb ( void   ) 


Member Data Documentation

template<typename H, typename B>
header_type* qlib::ace::Base_Packet< H, B >::header_ [private]

Definition at line 56 of file Base_Packet.h.

Referenced by qlib::ace::Base_Packet< H, B >::header(), and qlib::ace::Base_Packet< H, B >::~Base_Packet().

template<typename H, typename B>
body_type* qlib::ace::Base_Packet< H, B >::body_ [private]

Definition at line 57 of file Base_Packet.h.

Referenced by qlib::ace::Base_Packet< H, B >::body(), and qlib::ace::Base_Packet< H, B >::~Base_Packet().


The documentation for this class was generated from the following file:
Generated on Fri Jun 8 22:49:25 2007 for qlib::ace by  doxygen 1.5.1