IBR-DTNSuite
0.12
|
#include <Utils.h>
Static Public Member Functions | |
static void | rtrim (std::string &str) |
static void | ltrim (std::string &str) |
static void | trim (std::string &str) |
static std::vector< std::string > | tokenize (const std::string &token, const std::string &data, const std::string::size_type max=std::string::npos) |
static double | distance (double lat1, double lon1, double lat2, double lon2) |
static void | encapsule (dtn::data::Bundle &capsule, const std::list< dtn::data::Bundle > &bundles) |
static void | decapsule (const dtn::data::Bundle &capsule, std::list< dtn::data::Bundle > &bundles) |
static std::string | toString (const dtn::data::Length &value) |
|
static |
Definition at line 201 of file Utils.cpp.
References dtn::data::Bundle::find(), dtn::data::PayloadBlock::getBLOB(), ibrcommon::BLOB::Reference::iostream(), and dtn::data::Bundle::push_back().
|
static |
|
static |
Definition at line 126 of file Utils.cpp.
References ibrcommon::BLOB::iostream::clear(), ibrcommon::BLOB::create(), dtn::data::PrimaryBlock::CUSTODY_REQUESTED, dtn::data::Bundle::find(), dtn::data::PrimaryBlock::get(), dtn::data::PayloadBlock::getBLOB(), dtn::utils::Clock::getExpireTime(), ibrcommon::BLOB::Reference::iostream(), dtn::data::PrimaryBlock::lifetime, dtn::data::Bundle::push_back(), dtn::data::PrimaryBlock::set(), and dtn::data::BundleID::timestamp.
|
static |
|
static |
|
static |
Definition at line 60 of file Utils.cpp.
Referenced by dtn::daemon::Configuration::Discovery::address(), dtn::core::Node::URI::decode(), dtn::daemon::Configuration::Network::load(), dtn::daemon::Configuration::DHT::load(), dtn::daemon::Configuration::EMail::load(), dtn::api::PlainDeserializer::operator>>(), dtn::net::EMailConvergenceLayer::queue(), dtn::api::PlainDeserializer::readBlock(), dtn::api::PlainDeserializer::readData(), dtn::api::ApiP2PExtensionHandler::run(), dtn::api::ManagementConnection::run(), dtn::api::EventConnection::run(), dtn::api::OrderedStreamHandler::run(), dtn::api::ExtendedApiHandler::run(), and dtn::api::ClientHandler::run().
|
static |
|
static |
Definition at line 54 of file Utils.cpp.
References ltrim(), and rtrim().
Referenced by dtn::data::EID::EID().