#include <Protocol.h>
Inheritance diagram for ACE_RMCast::Part:
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_ |
Definition at line 1185 of file Protocol.h.
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 }
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 }
Part_ptr ACE_RMCast::Part::clone | ( | void | ) | [inline] |
Reimplemented from ACE_RMCast::Profile.
Definition at line 1208 of file Protocol.h.
References clone_().
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] |
u32 ACE_RMCast::Part::of | ( | ) | const [inline] |
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 }
u16 const ACE_RMCast::Part::id = 0x0008 [static] |
Definition at line 1187 of file Protocol.h.
u32 ACE_RMCast::Part::num_ [private] |
u32 ACE_RMCast::Part::of_ [private] |
u64 ACE_RMCast::Part::total_size_ [private] |
Definition at line 1269 of file Protocol.h.
Referenced by Part(), serialize_body(), and total_size().