IBR-DTNSuite  0.12
dtn::data::DefaultDeserializer Class Reference

#include <Serializer.h>

Inheritance diagram for dtn::data::DefaultDeserializer:
Inheritance graph
Collaboration diagram for dtn::data::DefaultDeserializer:
Collaboration graph

Public Member Functions

 DefaultDeserializer (std::istream &stream)
 
 DefaultDeserializer (std::istream &stream, Validator &v)
 
virtual ~DefaultDeserializer ()
 
virtual Deserializeroperator>> (dtn::data::Bundle &obj)
 
virtual Deserializeroperator>> (dtn::data::PrimaryBlock &obj)
 
virtual Deserializeroperator>> (dtn::data::Block &obj)
 
virtual Deserializerread (const dtn::data::PrimaryBlock &bundle, dtn::data::Block &obj)
 
virtual Deserializeroperator>> (dtn::data::MetaBundle &obj)
 
void setFragmentationSupport (bool val)
 
- Public Member Functions inherited from dtn::data::Deserializer
virtual ~Deserializer ()
 

Protected Attributes

std::istream & _stream
 
Validator_validator
 
AcceptValidator _default_validator
 

Detailed Description

Definition at line 136 of file Serializer.h.

Constructor & Destructor Documentation

dtn::data::DefaultDeserializer::DefaultDeserializer ( std::istream &  stream)

Default Deserializer

Parameters
streamStream to read from

Definition at line 537 of file Serializer.cpp.

dtn::data::DefaultDeserializer::DefaultDeserializer ( std::istream &  stream,
Validator v 
)

Initialize the Deserializer The validator can check each block, header or bundle for validity.

Parameters
streamStream to read from
vValidator for the bundles and blocks
Returns

Definition at line 542 of file Serializer.cpp.

virtual dtn::data::DefaultDeserializer::~DefaultDeserializer ( )
inlinevirtual

Default destructor.

Returns

Definition at line 158 of file Serializer.h.

Member Function Documentation

Deserializer & dtn::data::DefaultDeserializer::operator>> ( dtn::data::Block obj)
virtual
Deserializer & dtn::data::DefaultDeserializer::read ( const dtn::data::PrimaryBlock bundle,
dtn::data::Block obj 
)
virtual
void dtn::data::DefaultDeserializer::setFragmentationSupport ( bool  val)

Enable or disable reactive fragmentation support. (Default is disabled.)

Parameters
val

Definition at line 547 of file Serializer.cpp.

Referenced by dtn::net::TCPConnection::run().

Member Data Documentation

AcceptValidator dtn::data::DefaultDeserializer::_default_validator
protected

Definition at line 176 of file Serializer.h.

std::istream& dtn::data::DefaultDeserializer::_stream
protected

Definition at line 174 of file Serializer.h.

Referenced by operator>>(), read(), and dtn::data::SeparateDeserializer::readBlock().

Validator& dtn::data::DefaultDeserializer::_validator
protected

Definition at line 175 of file Serializer.h.

Referenced by operator>>(), read(), and dtn::data::SeparateDeserializer::readBlock().


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