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

#include <Serializer.h>

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

List of all members.

Public Member Functions

 DefaultDeserializer (std::istream &stream)
 DefaultDeserializer (std::istream &stream, Validator &v)
 DefaultDeserializer (std::istream &stream, const Dictionary &d)
virtual ~DefaultDeserializer ()
virtual Deserializeroperator>> (dtn::data::Bundle &obj)
virtual Deserializeroperator>> (dtn::data::PrimaryBlock &obj)
virtual Deserializeroperator>> (dtn::data::Block &obj)
virtual Deserializeroperator>> (dtn::data::MetaBundle &obj)
void setFragmentationSupport (bool val)

Protected Attributes

std::istream & _stream
Validator_validator
AcceptValidator _default_validator

Detailed Description

Definition at line 125 of file Serializer.h.


Constructor & Destructor Documentation

Default Deserializer

Parameters:
streamStream to read from

Definition at line 535 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 540 of file Serializer.cpp.

dtn::data::DefaultDeserializer::DefaultDeserializer ( std::istream &  stream,
const Dictionary d 
)

Initialize the Deserializer with a default dictionary to reconstruct the right EID values of block if the primary header is not read by this Deserializer.

Parameters:
streamStream to read from
dThe default dictionary

Definition at line 545 of file Serializer.cpp.

Default destructor.

Returns:

Definition at line 156 of file Serializer.h.


Member Function Documentation

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

Parameters:
val

Definition at line 550 of file Serializer.cpp.

Referenced by dtn::net::operator>>().


Member Data Documentation


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