KDIS  2-8-x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Bundle Class Reference

#include <Bundle.h>

Collaboration diagram for Bundle:

Public Member Functions

void AddPDU (const KDataStream &K) throw ( KException )
 Throws exeption PDU_TOO_LARGE if the total bundles length is greater than MAX_PDU_SIZE. More...
 
void AddPDU (PduPtr H) throw ( KException )
 
 Bundle ()
 
void ClearPDUs ()
 Description: Clears stored PDUs. More...
 
virtual KDataStream Encode () const
 Description: Convert To Network Data. More...
 
virtual void Encode (KDataStream &stream) const
 
virtual KString GetAsString ()
 Description: Returns a string representation of the PDU. More...
 
KUINT16 GetLength ()
 Description: Returns total length of all PDU in bytes. More...
 
const std::vector< KDataStream > & GetPDUStreams () const
 Description: Gets the stored PDU stremas or referenced PDUs. More...
 
const std::vector< PduPtr > & GetRefPDUs () const
 
KBOOL operator!= (const Bundle &Value) const
 
KBOOL operator== (const Bundle &Value) const
 
void SetPDUs (const std::vector< KDataStream > &P) throw ( KException )
 Throws exeption PDU_TOO_LARGE if the total bundles length is greater than MAX_PDU_SIZE. More...
 
void SetPDUs (const std::vector< PduPtr > &P) throw ( KException )
 
void SetPDUs (const std::vector< KDataStream > &Streams, const std::vector< PduPtr > &References) throw ( KException )
 
virtual ~Bundle ()
 

Protected Member Functions

void calculateLength ()
 Description: Calculate the total length of the Bundle. More...
 

Protected Attributes

KUINT16 m_ui16Length
 
std::vector< PduPtrm_vRefHeaders
 
std::vector< KDataStreamm_vStreams
 

Constructor & Destructor Documentation

Bundle ( )
virtual ~Bundle ( )
virtual

Member Function Documentation

void calculateLength ( )
protected

Description: Calculate the total length of the Bundle.

void AddPDU ( const KDataStream K)
throw (KException
)

Throws exeption PDU_TOO_LARGE if the total bundles length is greater than MAX_PDU_SIZE.

Description: Adds a PDU stream or referenced PDU to the bundle.

void AddPDU ( PduPtr  H)
throw (KException
)
void SetPDUs ( const std::vector< KDataStream > &  P)
throw (KException
)

Throws exeption PDU_TOO_LARGE if the total bundles length is greater than MAX_PDU_SIZE.

Description: Set multiple PDU.

void SetPDUs ( const std::vector< PduPtr > &  P)
throw (KException
)
void SetPDUs ( const std::vector< KDataStream > &  Streams,
const std::vector< PduPtr > &  References 
)
throw (KException
)
const std::vector<KDataStream>& GetPDUStreams ( ) const

Description: Gets the stored PDU stremas or referenced PDUs.

const std::vector<PduPtr>& GetRefPDUs ( ) const
void ClearPDUs ( )

Description: Clears stored PDUs.

KUINT16 GetLength ( )

Description: Returns total length of all PDU in bytes.

virtual KString GetAsString ( )
virtual

Description: Returns a string representation of the PDU.

virtual KDataStream Encode ( ) const
virtual

Description: Convert To Network Data.

virtual void Encode ( KDataStream stream) const
virtual
KBOOL operator== ( const Bundle Value) const
KBOOL operator!= ( const Bundle Value) const

Member Data Documentation

std::vector<KDataStream> m_vStreams
protected
std::vector<PduPtr> m_vRefHeaders
protected
KUINT16 m_ui16Length
protected

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