IBR-DTNSuite  0.10
StreamBundle Class Reference

#include <StreamBundle.h>

Inheritance diagram for StreamBundle:
Inheritance graph
Collaboration diagram for StreamBundle:
Collaboration graph

Public Member Functions

 StreamBundle ()
 
 StreamBundle (const dtn::data::Bundle &b)
 
virtual ~StreamBundle ()
 
void append (const char *data, size_t length)
 
void clear ()
 
size_t size ()
 
- Public Member Functions inherited from dtn::data::Bundle
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
iterator find (block_t blocktype)
 
const_iterator find (block_t blocktype) const
 
iterator find (const Block &block)
 
const_iterator find (const Block &block) const
 
 Bundle ()
 
virtual ~Bundle ()
 
bool operator== (const BundleID &other) const
 
bool operator== (const MetaBundle &other) const
 
bool operator== (const Bundle &other) const
 
bool operator!= (const Bundle &other) const
 
bool operator< (const Bundle &other) const
 
bool operator> (const Bundle &other) const
 
template<class T >
T & find ()
 
template<class T >
const T & find () const
 
template<class T >
T & push_front ()
 
template<class T >
T & push_back ()
 
template<class T >
T & insert (iterator before)
 
dtn::data::PayloadBlockpush_front (ibrcommon::BLOB::Reference &ref)
 
dtn::data::PayloadBlockpush_back (ibrcommon::BLOB::Reference &ref)
 
dtn::data::PayloadBlockinsert (iterator before, ibrcommon::BLOB::Reference &ref)
 
dtn::data::Blockpush_front (ExtensionBlock::Factory &factory)
 
dtn::data::Blockpush_back (ExtensionBlock::Factory &factory)
 
dtn::data::Blockinsert (iterator before, ExtensionBlock::Factory &factory)
 
void erase (iterator it)
 
void erase (iterator begin, iterator end)
 
void remove (const Block &block)
 
void clear ()
 
std::string toString () const
 
Size size () const
 
bool allEIDsInCBHE () const
 
- Public Member Functions inherited from dtn::data::PrimaryBlock
 PrimaryBlock ()
 
virtual ~PrimaryBlock ()
 
bool isExpired () const DEPRECATED
 
std::string toString () const
 
void set (FLAGS flag, bool value)
 
bool get (FLAGS flag) const
 
PRIORITY getPriority () const
 
void setPriority (PRIORITY p)
 
void relabel ()
 
bool operator== (const PrimaryBlock &other) const
 
bool operator!= (const PrimaryBlock &other) const
 
bool operator< (const PrimaryBlock &other) const
 
bool operator> (const PrimaryBlock &other) const
 

Additional Inherited Members

- Public Types inherited from dtn::data::Bundle
typedef std::list< block_elemblock_list
 
typedef block_list::iterator iterator
 
typedef block_list::const_iterator const_iterator
 
typedef
ibrcommon::find_iterator
< iterator, block_t
find_iterator
 
typedef
ibrcommon::find_iterator
< const_iterator, block_t
const_find_iterator
 
- Public Attributes inherited from dtn::data::PrimaryBlock
Bitset< FLAGSprocflags
 
Timestamp timestamp
 
Number sequencenumber
 
Number lifetime
 
Number fragmentoffset
 
Number appdatalength
 
EID source
 
EID destination
 
EID reportto
 
EID custodian
 

Detailed Description

Definition at line 28 of file StreamBundle.h.

Constructor & Destructor Documentation

StreamBundle::StreamBundle ( )

Definition at line 25 of file StreamBundle.cpp.

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

Here is the call graph for this function:

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

Definition at line 34 of file StreamBundle.cpp.

StreamBundle::~StreamBundle ( )
virtual

Definition at line 39 of file StreamBundle.cpp.

Member Function Documentation

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

Append data to the payload.

Definition at line 43 of file StreamBundle.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 50 of file StreamBundle.cpp.

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

Here is the call graph for this function:

size_t StreamBundle::size ( )

returns the size of the current payload

Returns

Definition at line 62 of file StreamBundle.cpp.

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

Referenced by BundleStreamBuf::__get_next_buffer_size(), BundleStreamBuf::flush(), and BundleStreamBuf::overflow().

Here is the call graph for this function:


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