IBR-DTNSuite  0.8
dtn::api::PlainDeserializer Class Reference

#include <PlainSerializer.h>

Inheritance diagram for dtn::api::PlainDeserializer:
Collaboration diagram for dtn::api::PlainDeserializer:

List of all members.

Classes

class  BlockInserter
class  BlockNotProcessableException
class  PlainDeserializerException
class  UnknownBlockException

Public Member Functions

 PlainDeserializer (std::istream &stream)
virtual ~PlainDeserializer ()
dtn::data::Deserializeroperator>> (dtn::data::Bundle &obj)
dtn::data::Deserializeroperator>> (dtn::data::PrimaryBlock &obj)
dtn::data::Deserializeroperator>> (dtn::data::Block &obj)
dtn::data::Deserializeroperator>> (ibrcommon::BLOB::iostream &obj)
dtn::data::BlockreadBlock (BlockInserter inserter, bool payload_is_adm)

Detailed Description

Definition at line 41 of file PlainSerializer.h.


Constructor & Destructor Documentation

Definition at line 181 of file PlainSerializer.cpp.

Definition at line 186 of file PlainSerializer.cpp.


Member Function Documentation

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().

Here is the call graph for this function:

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

Parameters:
inserterthe inserter that is used to insert the block into the bundle
Returns:
the block that was inserted

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().

Here is the call graph for this function:


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