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

#include <PlainSerializer.h>

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

Classes

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 (dtn::data::BundleBuilder &builder)
 
void readData (std::ostream &stream)
 
- Public Member Functions inherited from dtn::data::Deserializer
virtual ~Deserializer ()
 

Detailed Description

Definition at line 66 of file PlainSerializer.h.

Constructor & Destructor Documentation

dtn::api::PlainDeserializer::PlainDeserializer ( std::istream &  stream)

Definition at line 213 of file PlainSerializer.cpp.

dtn::api::PlainDeserializer::~PlainDeserializer ( )
virtual

Definition at line 218 of file PlainSerializer.cpp.

Member Function Documentation

dtn::data::Deserializer & dtn::api::PlainDeserializer::operator>> ( dtn::data::Bundle obj)
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().

Here is the call graph for this function:

dtn::data::Deserializer & dtn::api::PlainDeserializer::operator>> ( ibrcommon::BLOB::iostream obj)
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

Parameters
builderUse this builder to insert the block
Returns
the block that was inserted

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

Here is the call graph for this function:

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

Here is the call graph for this function:


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