Public Member Functions | Static Public Attributes

dtn::data::EID Class Reference

#include <EID.h>

Collaboration diagram for dtn::data::EID:
Collaboration graph
[legend]

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 getNode () const throw (ibrcommon::Exception)
string getScheme () const
string getNodeEID () const
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 19 of file EID.cpp.

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

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

Definition at line 24 of file EID.cpp.

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

Definition at line 30 of file EID.cpp.

References DEFAULT_SCHEME.

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

Constructor for CBHE EIDs.

Parameters:
node Node number.
application Application number.

Definition at line 54 of file EID.cpp.

References DEFAULT_SCHEME.

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

Definition at line 69 of file EID.cpp.


Member Function Documentation

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

Definition at line 125 of file EID.cpp.

References CBHE_SCHEME.

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

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 232 of file EID.cpp.

References getApplication(), getNode(), 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::getNode (  )  const throw (ibrcommon::Exception)
std::string dtn::data::EID::getNodeEID (  )  const
std::string dtn::data::EID::getScheme (  )  const

Definition at line 191 of file EID.cpp.

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

std::string dtn::data::EID::getString (  )  const
bool dtn::data::EID::hasApplication (  )  const

Definition at line 201 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 227 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 90 of file EID.cpp.

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

Definition at line 95 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 110 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 73 of file EID.cpp.

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

Definition at line 85 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 80 of file EID.cpp.

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

Definition at line 115 of file EID.cpp.

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

Definition at line 100 of file EID.cpp.

References getNodeEID().

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 105 of file EID.cpp.

References getNodeEID().

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: