Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes

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.

        : Profile (h)
    {
      is >> num_;
      is >> of_;
      is >> total_size_;
    }

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

Definition at line 1198 of file Protocol.h.

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

Definition at line 1221 of file Protocol.h.

        : Profile (part),
          num_ (part.num_),
          of_ (part.of_),
          total_size_ (part.total_size_)
    {
    }


Member Function Documentation

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

Reimplemented from ACE_RMCast::Profile.

Definition at line 1208 of file Protocol.h.

    {
      return Part_ptr (clone_ ());
    }

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

Implements ACE_RMCast::Profile.

Definition at line 1215 of file Protocol.h.

    {
      Profile_ptr p (new Part (*this));
      return p;
    }

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

Definition at line 1231 of file Protocol.h.

    {
      return num_;
    }

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

Definition at line 1237 of file Protocol.h.

    {
      return of_;
    }

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

Implements ACE_RMCast::Profile.

Definition at line 1258 of file Protocol.h.

    {
      ss << num_;
      ss << of_;
      ss << total_size_;
    }

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

Implements ACE_RMCast::Profile.

Definition at line 1250 of file Protocol.h.

    {
      os << num_;
      os << of_;
      os << total_size_;
    }

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

Definition at line 1243 of file Protocol.h.

    {
      return total_size_;
    }


Member Data Documentation

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

Definition at line 1187 of file Protocol.h.

Definition at line 1267 of file Protocol.h.

Definition at line 1268 of file Protocol.h.

Definition at line 1269 of file Protocol.h.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Defines