User Manual, Developers Guide and API Documentation

wns::osi::PDU Class Reference

Protocol Data Unit.

#include <osi/PDU.hpp>

Inheritance diagram for wns::osi::PDU:

Inheritance graph
[legend]
Collaboration diagram for wns::osi::PDU:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual size_t calcObjSize () const
virtual PDUclone ()
Bit getLengthInBits () const
 Return size of the PDU as sum of the sizes of the containing PCI and SDU in bits.
PCIgetPCI () const
unsigned long int getPDUId () const
pduType getPDUType () const
PDUgetUserData () const
 PDU (const PDU &aPDURef)
 PDU (PCI *aPCIPtr=NULL, PDU *anSDUPtr=NULL)
virtual void print (std::ostream &aStreamRef=std::cout) const
void setPCI (PCI *aPCIPtr)
void setPDUType (pduType aPDUType)
void setUserData (PDU *aUserDataPtr)
virtual ~PDU ()

Static Public Member Functions

static long int getExistingPDUs ()
static long int getMaxExistingPDUs ()

Private Member Functions

virtual Bit doGetLengthInBits () const
 Non-virutual interface to getLengthInBits.
virtual std::string doToString () const
 Overload to customize the representation of your class.

Private Attributes

PCIPtr p_pciPtr
 
PDUPtr p_userDataPtr
 

Static Private Attributes

static long int existingPDUs = 0
static long int maxExistingPDUs = 0


Detailed Description

Definition at line 53 of file PDU.hpp.


Constructor & Destructor Documentation

PDU::PDU ( PCI aPCIPtr = NULL,
PDU anSDUPtr = NULL 
) [explicit]

Definition at line 41 of file PDU.cpp.

PDU::PDU ( const PDU aPDURef  ) 

Definition at line 60 of file PDU.cpp.

PDU::~PDU (  )  [virtual]

Reimplemented in applications::session::PDU.

Definition at line 72 of file PDU.cpp.


Member Function Documentation

size_t PDU::calcObjSize (  )  const [virtual]

Reimplemented in wns::ldk::Compound, and constanze::ConstanzePDU.

Definition at line 172 of file PDU.cpp.

PDU * PDU::clone (  )  [virtual]

Reimplemented in wns::ldk::Compound, wns::ldk::helper::FakePDU, and constanze::ConstanzePDU.

Definition at line 140 of file PDU.cpp.

Bit PDU::doGetLengthInBits (  )  const [private, virtual]

std::string PDU::doToString (  )  const [private, virtual]

Implements wns::IOutputStreamable.

Definition at line 86 of file PDU.cpp.

long int PDU::getExistingPDUs (  )  [static]

Definition at line 161 of file PDU.cpp.

Bit PDU::getLengthInBits (  )  const

Definition at line 146 of file PDU.cpp.

long int PDU::getMaxExistingPDUs (  )  [static]

Definition at line 166 of file PDU.cpp.

PCI * PDU::getPCI (  )  const

Definition at line 101 of file PDU.cpp.

unsigned long int PDU::getPDUId (  )  const

Definition at line 134 of file PDU.cpp.

pduType PDU::getPDUType (  )  const

Definition at line 128 of file PDU.cpp.

PDU * PDU::getUserData (  )  const

Definition at line 117 of file PDU.cpp.

void PDU::print ( std::ostream &  aStreamRef = std::cout  )  const [virtual]

Definition at line 79 of file PDU.cpp.

void PDU::setPCI ( PCI aPCIPtr  ) 

Definition at line 94 of file PDU.cpp.

void PDU::setPDUType ( pduType  aPDUType  ) 

Definition at line 122 of file PDU.cpp.

void PDU::setUserData ( PDU aUserDataPtr  ) 

Definition at line 106 of file PDU.cpp.


Member Data Documentation

long int PDU::existingPDUs = 0 [static, private]

Definition at line 127 of file PDU.hpp.

long int PDU::maxExistingPDUs = 0 [static, private]

Definition at line 128 of file PDU.hpp.

Definition at line 118 of file PDU.hpp.

Definition at line 121 of file PDU.hpp.


The documentation for this class was generated from the following files:

Generated on Sun May 27 03:33:01 2012 for openWNS by  doxygen 1.5.5