IBR-DTNSuite
0.10
|
#include <PlainSerializer.h>
Classes | |
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 (dtn::data::BundleBuilder &builder) |
void | readData (std::ostream &stream) |
Public Member Functions inherited from dtn::data::Deserializer | |
virtual | ~Deserializer () |
Definition at line 66 of file PlainSerializer.h.
dtn::api::PlainDeserializer::PlainDeserializer | ( | std::istream & | stream | ) |
Definition at line 213 of file PlainSerializer.cpp.
|
virtual |
Definition at line 218 of file PlainSerializer.cpp.
|
virtual |
Implements dtn::data::Deserializer.
Definition at line 222 of file PlainSerializer.cpp.
References dtn::data::Bundle::clear(), IBRCOMMON_LOGGER_DEBUG_TAG, IBRCOMMON_LOGGER_ENDL, readBlock(), and dtn::data::Bundle::toString().
|
virtual |
Implements dtn::data::Deserializer.
Definition at line 252 of file PlainSerializer.cpp.
References dtn::data::PrimaryBlock::appdatalength, dtn::data::PrimaryBlock::custodian, dtn::data::PrimaryBlock::destination, dtn::data::PrimaryBlock::fragmentoffset, dtn::data::SDNV< E >::fromString(), 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().
|
virtual |
Implements dtn::data::Deserializer.
Definition at line 322 of file PlainSerializer.cpp.
References dtn::data::Block::addEID(), dtn::api::PlainSerializer::BASE64, 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_TAG, IBRCOMMON_LOGGER_ENDL, dtn::data::Block::LAST_BLOCK, dtn::api::PlainSerializer::parseEncoding(), dtn::api::PlainSerializer::RAW, 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 437 of file PlainSerializer.cpp.
References dtn::api::PlainSerializer::BASE64, ibrcommon::BLOB::copy(), dtn::api::PlainSerializer::parseEncoding(), dtn::api::PlainSerializer::RAW, and dtn::utils::Utils::tokenize().
dtn::data::Block & dtn::api::PlainDeserializer::readBlock | ( | dtn::data::BundleBuilder & | builder | ) |
read a block from _stream and add it to a bundle using a given BlockInserter
builder | Use this builder to insert the block |
Definition at line 625 of file PlainSerializer.cpp.
References dtn::data::BundleBuilder::insert(), and dtn::utils::Utils::tokenize().
Referenced by operator>>(), and dtn::api::ExtendedApiHandler::run().
void dtn::api::PlainDeserializer::readData | ( | std::ostream & | stream | ) |
deserialize a base64 encoded data stream into another stream
Definition at line 564 of file PlainSerializer.cpp.
References dtn::api::PlainSerializer::BASE64, ibrcommon::BLOB::copy(), dtn::api::PlainSerializer::parseEncoding(), dtn::api::PlainSerializer::RAW, and dtn::utils::Utils::tokenize().
Referenced by dtn::api::ExtendedApiHandler::run().