22 #ifndef EXTENSIONBLOCK_H_
23 #define EXTENSIONBLOCK_H_
26 #include <ibrcommon/data/BLOB.h>
56 ibrcommon::BLOB::Reference
getBLOB()
const;
61 virtual std::ostream &
serialize(std::ostream &stream,
Length &length)
const;
78 std::map<block_t, Factory*> fmap;
84 ibrcommon::BLOB::Reference _blobref;
static FactoryList * factories
void setType(block_t type)
virtual std::ostream & serialize(std::ostream &stream, Length &length) const
virtual dtn::data::Block * create()=0
virtual Length getLength() const
ibrcommon::BLOB::Reference getBLOB() const
virtual ~ExtensionBlock()
void add(block_t type, Factory *f)
virtual std::istream & deserialize(std::istream &stream, const Length &length)