IBR-DTNSuite
0.12
|
#include <NativeSerializer.h>
Public Types | |
enum | DataMode { BUNDLE_HEADER, BUNDLE_FULL, BUNDLE_INFO } |
Public Member Functions | |
NativeSerializer (NativeSerializerCallback &cb, DataMode mode) | |
virtual | ~NativeSerializer () |
NativeSerializer & | operator<< (const dtn::data::Bundle &obj) |
Definition at line 52 of file NativeSerializer.h.
Enumerator | |
---|---|
BUNDLE_HEADER | |
BUNDLE_FULL | |
BUNDLE_INFO |
Definition at line 54 of file NativeSerializer.h.
dtn::api::NativeSerializer::NativeSerializer | ( | NativeSerializerCallback & | cb, |
DataMode | mode | ||
) |
Definition at line 71 of file NativeSerializer.cpp.
|
virtual |
Definition at line 76 of file NativeSerializer.cpp.
NativeSerializer & dtn::api::NativeSerializer::operator<< | ( | const dtn::data::Bundle & | obj) |
Definition at line 79 of file NativeSerializer.cpp.
References dtn::data::Bundle::begin(), dtn::api::NativeSerializerCallback::beginBlock(), dtn::api::NativeSerializerCallback::beginBundle(), BUNDLE_FULL, BUNDLE_HEADER, dtn::data::Bundle::end(), dtn::api::NativeSerializerCallback::endBlock(), dtn::api::NativeSerializerCallback::endBundle(), dtn::data::Block::getLength(), and dtn::data::Block::serialize().