IBR-DTNSuite
0.8
|
#include <StringBundle.h>
Public Member Functions | |
StringBundle (const dtn::data::EID &destination) | |
virtual | ~StringBundle () |
void | append (const std::string &data) |
This class could be used to send small string data (all have to fit into the system RAM) through the bundle protocol.
Definition at line 22 of file StringBundle.h.
dtn::api::StringBundle::StringBundle | ( | const dtn::data::EID & | destination | ) |
Constructor of the StringBundle object. It just needs a destination as parameter.
destination | The desired destination of the bundle. |
Definition at line 15 of file StringBundle.cpp.
References dtn::api::Bundle::_b, and dtn::data::Bundle::push_back().
dtn::api::StringBundle::~StringBundle | ( | ) | [virtual] |
Destricutor of the StringBundle object.
Definition at line 21 of file StringBundle.cpp.
void dtn::api::StringBundle::append | ( | const std::string & | data | ) |
Append a string to the payload.
Definition at line 24 of file StringBundle.cpp.
References ibrcommon::BLOB::Reference::iostream().