ACE_RMCast::Part Struct Reference

#include <Protocol.h>

Inheritance diagram for ACE_RMCast::Part:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Part (Header const &h, istream &is)
 Part (u32 num, u32 of, u64 total_size)
Part_ptr clone ()
u32 num () const
u32 of () const
u64 total_size () const
virtual void serialize_body (ostream &os) const
virtual void serialize_body (sstream &ss) const

Static Public Attributes

static u16 const id = 0x0008

Protected Member Functions

virtual Profile_ptr clone_ ()
 Part (Part const &part)

Private Attributes

u32 num_
u32 of_
u64 total_size_

Detailed Description

Definition at line 1185 of file Protocol.h.


Constructor & Destructor Documentation

ACE_RMCast::Part::Part ( Header const &  h,
istream is 
) [inline]

Definition at line 1190 of file Protocol.h.

References num_, of_, and total_size_.

01191         : Profile (h)
01192     {
01193       is >> num_;
01194       is >> of_;
01195       is >> total_size_;
01196     }

ACE_RMCast::Part::Part ( u32  num,
u32  of,
u64  total_size 
) [inline]

Definition at line 1198 of file Protocol.h.

References ACE_RMCast::Profile::calculate_size(), and ACE_RMCast::Profile::size().

01199         : Profile (id),
01200           num_ (num),
01201           of_ (of),
01202           total_size_ (total_size)
01203     {
01204       size (calculate_size ());
01205     }

ACE_RMCast::Part::Part ( Part const &  part  )  [inline, protected]

Definition at line 1221 of file Protocol.h.

01222         : Profile (part),
01223           num_ (part.num_),
01224           of_ (part.of_),
01225           total_size_ (part.total_size_)
01226     {
01227     }


Member Function Documentation

Part_ptr ACE_RMCast::Part::clone ( void   )  [inline]

Reimplemented from ACE_RMCast::Profile.

Definition at line 1208 of file Protocol.h.

References clone_().

01209     {
01210       return Part_ptr (clone_ ());
01211     }

virtual Profile_ptr ACE_RMCast::Part::clone_ (  )  [inline, protected, virtual]

Implements ACE_RMCast::Profile.

Definition at line 1215 of file Protocol.h.

Referenced by clone().

01216     {
01217       Profile_ptr p (new Part (*this));
01218       return p;
01219     }

u32 ACE_RMCast::Part::num (  )  const [inline]

Definition at line 1231 of file Protocol.h.

References num_.

01232     {
01233       return num_;
01234     }

u32 ACE_RMCast::Part::of (  )  const [inline]

Definition at line 1237 of file Protocol.h.

References of_.

01238     {
01239       return of_;
01240     }

virtual void ACE_RMCast::Part::serialize_body ( sstream ss  )  const [inline, virtual]

Implements ACE_RMCast::Profile.

Definition at line 1258 of file Protocol.h.

References num_, of_, and total_size_.

01259     {
01260       ss << num_;
01261       ss << of_;
01262       ss << total_size_;
01263     }

virtual void ACE_RMCast::Part::serialize_body ( ostream os  )  const [inline, virtual]

Implements ACE_RMCast::Profile.

Definition at line 1250 of file Protocol.h.

References num_, of_, and total_size_.

01251     {
01252       os << num_;
01253       os << of_;
01254       os << total_size_;
01255     }

u64 ACE_RMCast::Part::total_size ( void   )  const [inline]

Definition at line 1243 of file Protocol.h.

References total_size_.

01244     {
01245       return total_size_;
01246     }


Member Data Documentation

u16 const ACE_RMCast::Part::id = 0x0008 [static]

Definition at line 1187 of file Protocol.h.

u32 ACE_RMCast::Part::num_ [private]

Definition at line 1267 of file Protocol.h.

Referenced by num(), Part(), and serialize_body().

u32 ACE_RMCast::Part::of_ [private]

Definition at line 1268 of file Protocol.h.

Referenced by of(), Part(), and serialize_body().

u64 ACE_RMCast::Part::total_size_ [private]

Definition at line 1269 of file Protocol.h.

Referenced by Part(), serialize_body(), and total_size().


The documentation for this struct was generated from the following files:
Generated on Tue Feb 2 17:36:30 2010 for ACE_RMCast by  doxygen 1.4.7