• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ibrdtn/ibrdtn/data/ExtensionBlock.h

Go to the documentation of this file.
00001 /*
00002  * ExtensionBlock.h
00003  *
00004  *  Created on: 26.05.2010
00005  *      Author: morgenro
00006  */
00007 
00008 #ifndef EXTENSIONBLOCK_H_
00009 #define EXTENSIONBLOCK_H_
00010 
00011 #include "ibrdtn/data/Block.h"
00012 #include "ibrcommon/data/BLOB.h"
00013 
00014 namespace dtn
00015 {
00016         namespace data
00017         {
00018                 class ExtensionBlock : public Block
00019                 {
00020                 public:
00021                         ExtensionBlock();
00022                         ExtensionBlock(ibrcommon::BLOB::Reference ref);
00023                         virtual ~ExtensionBlock();
00024 
00025                         ibrcommon::BLOB::Reference getBLOB();
00026 
00027                         virtual size_t getLength() const;
00028                         virtual std::ostream &serialize(std::ostream &stream) const;
00029                         virtual std::istream &deserialize(std::istream &stream);
00030 
00031                 private:
00032                         ibrcommon::BLOB::Reference _blobref;
00033                 };
00034         }
00035 }
00036 
00037 #endif /* EXTENSIONBLOCK_H_ */

Generated on Thu Nov 11 2010 09:49:47 for IBR-DTNSuite by  doxygen 1.7.1