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