IBR-DTNSuite
0.8
|
#include <PlainSerializer.h>
Classes | |
class | BlockInserter |
class | BlockNotProcessableException |
class | PlainDeserializerException |
class | UnknownBlockException |
Public Member Functions | |
PlainDeserializer (std::istream &stream) | |
virtual | ~PlainDeserializer () |
dtn::data::Deserializer & | operator>> (dtn::data::Bundle &obj) |
dtn::data::Deserializer & | operator>> (dtn::data::PrimaryBlock &obj) |
dtn::data::Deserializer & | operator>> (dtn::data::Block &obj) |
dtn::data::Deserializer & | operator>> (ibrcommon::BLOB::iostream &obj) |
dtn::data::Block & | readBlock (BlockInserter inserter, bool payload_is_adm) |
Definition at line 41 of file PlainSerializer.h.
dtn::api::PlainDeserializer::PlainDeserializer | ( | std::istream & | stream | ) |
Definition at line 181 of file PlainSerializer.cpp.
dtn::api::PlainDeserializer::~PlainDeserializer | ( | ) | [virtual] |
Definition at line 186 of file PlainSerializer.cpp.
dtn::data::Deserializer & dtn::api::PlainDeserializer::operator>> | ( | dtn::data::Bundle & | obj | ) | [virtual] |
Implements dtn::data::Deserializer.
Definition at line 190 of file PlainSerializer.cpp.
References dtn::data::PrimaryBlock::APPDATA_IS_ADMRECORD, dtn::data::Bundle::clearBlocks(), dtn::api::PlainDeserializer::BlockInserter::END, dtn::data::Block::get(), dtn::data::PrimaryBlock::get(), IBRCOMMON_LOGGER_DEBUG, IBRCOMMON_LOGGER_ENDL, dtn::data::Block::LAST_BLOCK, readBlock(), and dtn::data::Bundle::toString().
dtn::data::Deserializer & dtn::api::PlainDeserializer::operator>> | ( | dtn::data::PrimaryBlock & | obj | ) | [virtual] |
Implements dtn::data::Deserializer.
Definition at line 222 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, and dtn::utils::Utils::tokenize().
dtn::data::Deserializer & dtn::api::PlainDeserializer::operator>> | ( | dtn::data::Block & | obj | ) | [virtual] |
Implements dtn::data::Deserializer.
Definition at line 299 of file PlainSerializer.cpp.
References dtn::data::Block::addEID(), dtn::data::Block::BLOCK_CONTAINS_EIDS, dtn::data::Block::DELETE_BUNDLE_IF_NOT_PROCESSED, dtn::data::Block::deserialize(), dtn::data::Block::DISCARD_IF_NOT_PROCESSED, dtn::data::Block::FORWARDED_WITHOUT_PROCESSED, IBRCOMMON_LOGGER_DEBUG, IBRCOMMON_LOGGER_ENDL, dtn::data::Block::LAST_BLOCK, dtn::data::Block::REPLICATE_IN_EVERY_FRAGMENT, dtn::data::Block::set(), dtn::utils::Utils::tokenize(), and dtn::data::Block::TRANSMIT_STATUSREPORT_IF_NOT_PROCESSED.
dtn::data::Deserializer & dtn::api::PlainDeserializer::operator>> | ( | ibrcommon::BLOB::iostream & | obj | ) |
Definition at line 393 of file PlainSerializer.cpp.
References ibrcommon::BLOB::copy(), and dtn::utils::Utils::tokenize().
dtn::data::Block & dtn::api::PlainDeserializer::readBlock | ( | BlockInserter | inserter, |
bool | payload_is_adm | ||
) |
read a block from _stream and add it to a bundle using a given BlockInserter
inserter | the inserter that is used to insert the block into the bundle |
Definition at line 473 of file PlainSerializer.cpp.
References dtn::data::PayloadBlock::BLOCK_TYPE, dtn::data::Block::DISCARD_IF_NOT_PROCESSED, dtn::data::ExtensionBlock::Factory::get(), dtn::api::PlainDeserializer::BlockInserter::insert(), ibrcommon::BLOB::Reference::iostream(), dtn::data::Block::LAST_BLOCK, dtn::data::Block::set(), and dtn::utils::Utils::tokenize().
Referenced by operator>>(), and dtn::api::ExtendedApiHandler::run().