ACE_RMCast::Profile Struct Reference

#include <Protocol.h>

Inheritance diagram for ACE_RMCast::Profile:

Inheritance graph
[legend]
Collaboration diagram for ACE_RMCast::Profile:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~Profile ()
Profile_ptr clone ()
u16 id () const
u16 size () const
virtual void serialize_body (ostream &) const=0
virtual void serialize_body (sstream &) const=0

Protected Member Functions

 Profile (u16 id)
 Profile (Header const &h)
virtual Profile_ptr clone_ ()=0
void size (u16 s)
u16 calculate_size ()

Private Member Functions

Profileoperator= (Profile const &)

Private Attributes

Header header_

Friends

ostreamoperator<< (ostream &os, Profile const &p)
sstreamoperator<< (sstream &ss, Profile const &p)

Constructor & Destructor Documentation

virtual ACE_RMCast::Profile::~Profile  )  [inline, virtual]
 

Definition at line 119 of file Protocol.h.

00120     {
00121     }

ACE_RMCast::Profile::Profile u16  id  )  [inline, protected]
 

Definition at line 130 of file Protocol.h.

References ACE_RMCast::u16.

00131         : header_ (id, 0)
00132     {
00133     }

ACE_RMCast::Profile::Profile Header const &  h  )  [inline, protected]
 

Definition at line 135 of file Protocol.h.

00136         : header_ (h)
00137     {
00138     }


Member Function Documentation

u16 ACE_RMCast::Profile::calculate_size  )  [inline, protected]
 

Definition at line 168 of file Protocol.h.

References serialize_body(), ACE_RMCast::sstream, and ACE_SizeCDR::total_length().

00169     {
00170       sstream ss;
00171 
00172       serialize_body (ss);
00173 
00174       return static_cast<u16> (ss.total_length ());
00175     }

Profile_ptr ACE_RMCast::Profile::clone void   )  [inline]
 

Reimplemented in ACE_RMCast::From, ACE_RMCast::To, ACE_RMCast::Data, ACE_RMCast::SN, ACE_RMCast::NRTM, ACE_RMCast::NoData, and ACE_RMCast::Part.

Definition at line 124 of file Protocol.h.

References clone_().

00125     {
00126       return clone_ ();
00127     }

virtual Profile_ptr ACE_RMCast::Profile::clone_  )  [protected, pure virtual]
 

Implemented in ACE_RMCast::From, ACE_RMCast::To, ACE_RMCast::Data, ACE_RMCast::SN, ACE_RMCast::NRTM, ACE_RMCast::NoData, and ACE_RMCast::Part.

Referenced by clone().

u16 ACE_RMCast::Profile::id void   )  const [inline]
 

Definition at line 149 of file Protocol.h.

References ACE_RMCast::Profile::Header::id().

00150     {
00151       return header_.id ();
00152     }

Profile& ACE_RMCast::Profile::operator= Profile const &   )  [private]
 

virtual void ACE_RMCast::Profile::serialize_body sstream  )  const [pure virtual]
 

Implemented in ACE_RMCast::From, ACE_RMCast::To, ACE_RMCast::Data, ACE_RMCast::SN, ACE_RMCast::NRTM, ACE_RMCast::NoData, and ACE_RMCast::Part.

virtual void ACE_RMCast::Profile::serialize_body ostream  )  const [pure virtual]
 

Implemented in ACE_RMCast::From, ACE_RMCast::To, ACE_RMCast::Data, ACE_RMCast::SN, ACE_RMCast::NRTM, ACE_RMCast::NoData, and ACE_RMCast::Part.

Referenced by calculate_size(), and ACE_RMCast::operator<<().

void ACE_RMCast::Profile::size u16  s  )  [inline, protected]
 

Definition at line 162 of file Protocol.h.

References ACE_RMCast::Profile::Header::size(), and ACE_RMCast::u16.

00163     {
00164       header_.size (s);
00165     }

u16 ACE_RMCast::Profile::size void   )  const [inline]
 

Reimplemented in ACE_RMCast::Data.

Definition at line 155 of file Protocol.h.

References ACE_RMCast::Profile::Header::size().

Referenced by ACE_RMCast::NRTM::insert().

00156     {
00157       return header_.size ();
00158     }


Friends And Related Function Documentation

sstream& operator<< sstream ss,
Profile const &  p
[friend]
 

Definition at line 228 of file Protocol.h.

00229   {
00230     ss << p.header_;
00231     p.serialize_body (ss);
00232 
00233     return ss;
00234   }

ostream& operator<< ostream os,
Profile const &  p
[friend]
 

Definition at line 218 of file Protocol.h.

00219   {
00220     os << p.header_;
00221     p.serialize_body (os);
00222 
00223     return os;
00224   }


Member Data Documentation

Header ACE_RMCast::Profile::header_ [private]
 

Definition at line 193 of file Protocol.h.

Referenced by ACE_RMCast::operator<<().


The documentation for this struct was generated from the following file:
Generated on Thu Nov 9 11:41:10 2006 for ACE_RMCast by doxygen 1.3.6