IBR-DTNSuite  0.8
ibrdtn/ibrdtn/data/BundleFragment.h
Go to the documentation of this file.
00001 /*
00002  * BundleFragment.h
00003  *
00004  *  Created on: 14.04.2011
00005  *      Author: morgenro
00006  */
00007 
00008 #ifndef BUNDLEFRAGMENT_H_
00009 #define BUNDLEFRAGMENT_H_
00010 
00011 #include <stdlib.h>
00012 
00013 namespace dtn
00014 {
00015         namespace data
00016         {
00017                 class Bundle;
00018                 class BundleFragment
00019                 {
00020                         public:
00021                                 BundleFragment(const dtn::data::Bundle &bundle, size_t payload_length);
00022                                 BundleFragment(const dtn::data::Bundle &bundle, size_t offset, size_t payload_length);
00023                                 virtual ~BundleFragment();
00024 
00025                                 const dtn::data::Bundle &_bundle;
00026                                 const size_t _offset;
00027                                 const size_t _length;
00028                 };
00029         }
00030 }
00031 
00032 #endif /* BUNDLEFRAGMENT_H_ */