00001 /* 00002 * StringBundle.cpp 00003 * 00004 * Created on: 24.07.2009 00005 * Author: morgenro 00006 */ 00007 00008 #include "ibrdtn/config.h" 00009 #include "ibrdtn/api/StringBundle.h" 00010 00011 00012 namespace dtn 00013 { 00014 namespace api 00015 { 00016 StringBundle::StringBundle(dtn::data::EID destination) 00017 : Bundle(destination), _payload(_b.push_back<dtn::data::PayloadBlock>()) 00018 { 00019 } 00020 00021 StringBundle::~StringBundle() 00022 { 00023 } 00024 00025 void StringBundle::append(string data) 00026 { 00027 (*_payload.getBLOB()) << data; 00028 } 00029 } 00030 }
1.6.3