IBR-DTNSuite
0.8
|
#include <PlainSerializer.h>
Public Member Functions | |
PlainSerializer (std::ostream &stream, bool skip_payload=false) | |
virtual | ~PlainSerializer () |
dtn::data::Serializer & | operator<< (const dtn::data::Bundle &obj) |
dtn::data::Serializer & | operator<< (const dtn::data::PrimaryBlock &obj) |
dtn::data::Serializer & | operator<< (const dtn::data::Block &obj) |
dtn::data::Serializer & | serialize (ibrcommon::BLOB::iostream &obj, size_t limit=0) |
size_t | getLength (const dtn::data::Bundle &obj) |
size_t | getLength (const dtn::data::PrimaryBlock &obj) const |
size_t | getLength (const dtn::data::Block &obj) const |
Definition at line 20 of file PlainSerializer.h.
dtn::api::PlainSerializer::PlainSerializer | ( | std::ostream & | stream, |
bool | skip_payload = false |
||
) |
Definition at line 21 of file PlainSerializer.cpp.
dtn::api::PlainSerializer::~PlainSerializer | ( | ) | [virtual] |
Definition at line 26 of file PlainSerializer.cpp.
size_t dtn::api::PlainSerializer::getLength | ( | const dtn::data::Bundle & | obj | ) | [virtual] |
Implements dtn::data::Serializer.
Definition at line 166 of file PlainSerializer.cpp.
size_t dtn::api::PlainSerializer::getLength | ( | const dtn::data::PrimaryBlock & | obj | ) | const [virtual] |
Implements dtn::data::Serializer.
Definition at line 171 of file PlainSerializer.cpp.
size_t dtn::api::PlainSerializer::getLength | ( | const dtn::data::Block & | obj | ) | const [virtual] |
Implements dtn::data::Serializer.
Definition at line 176 of file PlainSerializer.cpp.
dtn::data::Serializer & dtn::api::PlainSerializer::operator<< | ( | const dtn::data::Bundle & | obj | ) | [virtual] |
Implements dtn::data::Serializer.
Definition at line 30 of file PlainSerializer.cpp.
References dtn::data::Bundle::getBlocks().
dtn::data::Serializer & dtn::api::PlainSerializer::operator<< | ( | const dtn::data::PrimaryBlock & | obj | ) | [virtual] |
Implements dtn::data::Serializer.
Definition at line 53 of file PlainSerializer.cpp.
References dtn::data::PrimaryBlock::_appdatalength, dtn::data::PrimaryBlock::_custodian, dtn::data::PrimaryBlock::_destination, dtn::data::PrimaryBlock::_fragmentoffset, dtn::data::PrimaryBlock::_lifetime, dtn::data::PrimaryBlock::_procflags, dtn::data::PrimaryBlock::_reportto, dtn::data::PrimaryBlock::_sequencenumber, dtn::data::PrimaryBlock::_source, dtn::data::PrimaryBlock::_timestamp, dtn::data::PrimaryBlock::FRAGMENT, and dtn::data::EID::getString().
dtn::data::Serializer & dtn::api::PlainSerializer::operator<< | ( | const dtn::data::Block & | obj | ) | [virtual] |
Implements dtn::data::Serializer.
Definition at line 73 of file PlainSerializer.cpp.
References dtn::data::Block::BLOCK_CONTAINS_EIDS, dtn::data::Block::DELETE_BUNDLE_IF_NOT_PROCESSED, dtn::data::Block::DISCARD_IF_NOT_PROCESSED, dtn::data::Block::FORWARDED_WITHOUT_PROCESSED, dtn::data::Block::get(), dtn::data::Block::getEIDList(), dtn::data::Block::getLength(), dtn::data::Block::getType(), dtn::data::Block::LAST_BLOCK, dtn::data::Block::REPLICATE_IN_EVERY_FRAGMENT, dtn::data::Block::serialize(), and dtn::data::Block::TRANSMIT_STATUSREPORT_IF_NOT_PROCESSED.
dtn::data::Serializer & dtn::api::PlainSerializer::serialize | ( | ibrcommon::BLOB::iostream & | obj, |
size_t | limit = 0 |
||
) |
Definition at line 147 of file PlainSerializer.cpp.
References ibrcommon::BLOB::copy(), and ibrcommon::BLOB::iostream::size().
Referenced by dtn::api::ExtendedApiHandler::run().