IBR-DTNSuite 0.6

dtn::data::EID Class Reference

#include <EID.h>

Collaboration diagram for dtn::data::EID:

List of all members.

Public Member Functions

 EID ()
 EID (std::string scheme, std::string ssp)
 EID (std::string value)
 EID (size_t node, size_t application)
virtual ~EID ()
EIDoperator= (const EID &other)
bool operator== (EID const &other) const
bool operator== (string const &other) const
bool operator!= (EID const &other) const
EID operator+ (string suffix) const
bool sameHost (string const &other) const
bool sameHost (EID const &other) const
bool operator< (EID const &other) const
bool operator> (const EID &other) const
string getString () const
string getApplication () const throw (ibrcommon::Exception)
string getHost () const throw (ibrcommon::Exception)
string getScheme () const
EID getNode () const throw (ibrcommon::Exception)
bool hasApplication () const
bool isCompressable () const
std::pair< size_t, size_t > getCompressed () const

Static Public Attributes

static const std::string DEFAULT_SCHEME = "dtn"
static const std::string CBHE_SCHEME = "ipn"

Detailed Description

Definition at line 20 of file EID.h.


Constructor & Destructor Documentation

dtn::data::EID::EID ( )

Definition at line 20 of file EID.cpp.

Referenced by operator+(), operator==(), and sameHost().

dtn::data::EID::EID ( std::string  scheme,
std::string  ssp 
)

Definition at line 25 of file EID.cpp.

References dtn::utils::Utils::trim().

Here is the call graph for this function:

dtn::data::EID::EID ( std::string  value)

Definition at line 34 of file EID.cpp.

References DEFAULT_SCHEME, and dtn::utils::Utils::trim().

Here is the call graph for this function:

dtn::data::EID::EID ( size_t  node,
size_t  application 
)

Constructor for CBHE EIDs.

Parameters:
nodeNode number.
applicationApplication number.

Definition at line 60 of file EID.cpp.

References DEFAULT_SCHEME.

dtn::data::EID::~EID ( ) [virtual]

Definition at line 75 of file EID.cpp.


Member Function Documentation

std::string dtn::data::EID::getApplication ( ) const throw (ibrcommon::Exception)
std::pair< size_t, size_t > dtn::data::EID::getCompressed ( ) const

Get the compressed EID as two numeric values. Both values are set to zero if the EID is not compressable.

Returns:
A pair of two numeric values.

Definition at line 238 of file EID.cpp.

References getApplication(), getHost(), hasApplication(), and isCompressable().

Referenced by dtn::data::DefaultSerializer::getLength(), and dtn::data::DefaultSerializer::operator<<().

Here is the call graph for this function:

std::string dtn::data::EID::getHost ( ) const throw (ibrcommon::Exception)
std::string dtn::data::EID::getScheme ( ) const

Definition at line 197 of file EID.cpp.

Referenced by dtn::data::Dictionary::add(), and dtn::data::Dictionary::getRef().

bool dtn::data::EID::hasApplication ( ) const

Definition at line 207 of file EID.cpp.

References CBHE_SCHEME.

Referenced by getCompressed().

bool dtn::data::EID::isCompressable ( ) const

check if a EID is compressable.

Returns:
True, if the EID is compressable.

Definition at line 233 of file EID.cpp.

References CBHE_SCHEME, and DEFAULT_SCHEME.

Referenced by getCompressed(), and dtn::data::DefaultSerializer::isCompressable().

bool dtn::data::EID::operator!= ( EID const &  other) const

Definition at line 96 of file EID.cpp.

EID dtn::data::EID::operator+ ( string  suffix) const

Definition at line 101 of file EID.cpp.

References EID(), and getString().

Here is the call graph for this function:

bool dtn::data::EID::operator< ( EID const &  other) const

Definition at line 116 of file EID.cpp.

References getString().

Here is the call graph for this function:

EID & dtn::data::EID::operator= ( const EID other)

Definition at line 79 of file EID.cpp.

bool dtn::data::EID::operator== ( string const &  other) const

Definition at line 91 of file EID.cpp.

References EID().

Here is the call graph for this function:

bool dtn::data::EID::operator== ( EID const &  other) const

Definition at line 86 of file EID.cpp.

bool dtn::data::EID::operator> ( const EID other) const

Definition at line 121 of file EID.cpp.

bool dtn::data::EID::sameHost ( string const &  other) const

Definition at line 106 of file EID.cpp.

References EID(), and getNode().

Referenced by dtn::core::SQLiteBundleStorage::store().

Here is the call graph for this function:

bool dtn::data::EID::sameHost ( EID const &  other) const

Definition at line 111 of file EID.cpp.

References getNode().

Here is the call graph for this function:


Member Data Documentation

const std::string dtn::data::EID::CBHE_SCHEME = "ipn" [static]
const std::string dtn::data::EID::DEFAULT_SCHEME = "dtn" [static]

Definition at line 23 of file EID.h.

Referenced by EID(), and isCompressable().


The documentation for this class was generated from the following files: