IBR-DTNSuite
0.10
|
#include <StreamBundle.h>
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::PayloadBlock & | push_front (ibrcommon::BLOB::Reference &ref) |
dtn::data::PayloadBlock & | push_back (ibrcommon::BLOB::Reference &ref) |
dtn::data::PayloadBlock & | insert (iterator before, ibrcommon::BLOB::Reference &ref) |
dtn::data::Block & | push_front (ExtensionBlock::Factory &factory) |
dtn::data::Block & | push_back (ExtensionBlock::Factory &factory) |
dtn::data::Block & | insert (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_elem > | block_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< FLAGS > | procflags |
Timestamp | timestamp |
Number | sequencenumber |
Number | lifetime |
Number | fragmentoffset |
Number | appdatalength |
EID | source |
EID | destination |
EID | reportto |
EID | custodian |
Definition at line 28 of file StreamBundle.h.
StreamBundle::StreamBundle | ( | ) |
Definition at line 25 of file StreamBundle.cpp.
References dtn::data::Bundle::push_back(), and dtn::data::StreamBlock::setSequenceNumber().
StreamBundle::StreamBundle | ( | const dtn::data::Bundle & | b | ) |
Definition at line 34 of file StreamBundle.cpp.
|
virtual |
Definition at line 39 of file StreamBundle.cpp.
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().
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().
size_t StreamBundle::size | ( | ) |
returns the size of the current payload
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().