Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends

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.

Classes

class  Header

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)

Detailed Description

Definition at line 75 of file Protocol.h.


Constructor & Destructor Documentation

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

Definition at line 120 of file Protocol.h.

    {
    }

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

Definition at line 132 of file Protocol.h.

        : header_ (id, 0)
    {
    }

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

Definition at line 137 of file Protocol.h.

        : header_ (h)
    {
    }


Member Function Documentation

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

Definition at line 170 of file Protocol.h.

    {
      sstream ss;

      serialize_body (ss);

      return static_cast<u16> (ss.total_length ());
    }

Profile_ptr ACE_RMCast::Profile::clone ( void   )  [inline]
virtual Profile_ptr ACE_RMCast::Profile::clone_ (  )  [protected, pure virtual]
u16 ACE_RMCast::Profile::id ( void   )  const [inline]

Definition at line 151 of file Protocol.h.

    {
      return header_.id ();
    }

Profile& ACE_RMCast::Profile::operator= ( Profile const &   )  [private]
virtual void ACE_RMCast::Profile::serialize_body ( sstream  )  const [pure virtual]
virtual void ACE_RMCast::Profile::serialize_body ( ostream  )  const [pure virtual]
void ACE_RMCast::Profile::size ( u16  s  )  [inline, protected]

Definition at line 164 of file Protocol.h.

    {
      header_.size (s);
    }

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

Reimplemented in ACE_RMCast::Data.

Definition at line 157 of file Protocol.h.

    {
      return header_.size ();
    }


Friends And Related Function Documentation

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

Definition at line 220 of file Protocol.h.

  {
    os << p.header_;
    p.serialize_body (os);

    return os;
  }

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

Definition at line 230 of file Protocol.h.

  {
    ss << p.header_;
    p.serialize_body (ss);

    return ss;
  }


Member Data Documentation

Definition at line 195 of file Protocol.h.


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