Public Member Functions | Static Public Member Functions

StreamBundle Class Reference

#include <BundleStream.h>

Inherits dtn::api::Bundle.

Collaboration diagram for StreamBundle:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 StreamBundle ()
 StreamBundle (const dtn::api::Bundle &b)
virtual ~StreamBundle ()
void append (const char *data, size_t length)
void clear ()
size_t size ()

Static Public Member Functions

static size_t getSequenceNumber (const StreamBundle &b)

Detailed Description

Definition at line 49 of file BundleStream.h.


Constructor & Destructor Documentation

StreamBundle::StreamBundle (  ) 

Definition at line 62 of file dtnstream.cpp.

References dtn::api::Bundle::_b, dtn::data::Bundle::push_back(), dtn::data::Bundle::push_front(), and StreamBlock::setSequenceNumber().

Here is the call graph for this function:

StreamBundle::StreamBundle ( const dtn::api::Bundle b  ) 

Definition at line 71 of file dtnstream.cpp.

StreamBundle::~StreamBundle (  )  [virtual]

Definition at line 76 of file dtnstream.cpp.


Member Function Documentation

void StreamBundle::append ( const char *  data,
size_t  length 
)

Append data to the payload.

Definition at line 80 of file dtnstream.cpp.

References ibrcommon::BLOB::Reference::iostream().

Referenced by BundleStreamBuf::overflow().

Here is the call graph for this function:

void StreamBundle::clear (  ) 

deletes the hole payload of the bundle

Definition at line 87 of file dtnstream.cpp.

References dtn::api::Bundle::_b, ibrcommon::BLOB::iostream::clear(), dtn::data::Bundle::getBlock(), StreamBlock::getSequenceNumber(), ibrcommon::BLOB::Reference::iostream(), and StreamBlock::setSequenceNumber().

Here is the call graph for this function:

size_t StreamBundle::getSequenceNumber ( const StreamBundle b  )  [static]

Definition at line 105 of file dtnstream.cpp.

References dtn::api::Bundle::_b, dtn::data::Bundle::getBlock(), and StreamBlock::getSequenceNumber().

Referenced by BundleStreamBuf::received().

Here is the call graph for this function:

size_t StreamBundle::size (  ) 

returns the size of the current payload

Returns:

Definition at line 99 of file dtnstream.cpp.

References ibrcommon::BLOB::Reference::iostream(), and ibrcommon::BLOB::iostream::size().

Referenced by BundleStreamBuf::overflow().

Here is the call graph for this function:


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