IBR-DTNSuite  0.10
dtn::core::Node::URI Class Reference

#include <Node.h>

Collaboration diagram for dtn::core::Node::URI:
Collaboration graph

Public Member Functions

 URI (const Type t, const Protocol proto, const std::string &uri, const dtn::data::Number &timeout=0, const int priority=0)
 
 ~URI ()
 
void decode (std::string &address, unsigned int &port) const
 
bool operator< (const URI &other) const
 
bool operator== (const URI &other) const
 
bool operator== (const Node::Protocol &p) const
 
bool operator== (const Node::Type &t) const
 

Public Attributes

const Type type
 
const Protocol protocol
 
const std::string value
 
const dtn::data::Timestamp expire
 
const int priority
 

Friends

std::ostream & operator<< (std::ostream &, const Node::URI &)
 

Detailed Description

Definition at line 80 of file Node.h.

Constructor & Destructor Documentation

dtn::core::Node::URI::URI ( const Type  t,
const Protocol  proto,
const std::string &  uri,
const dtn::data::Number timeout = 0,
const int  priority = 0 
)

Definition at line 38 of file Node.cpp.

dtn::core::Node::URI::~URI ( )

Definition at line 43 of file Node.cpp.

Member Function Documentation

void dtn::core::Node::URI::decode ( std::string &  address,
unsigned int &  port 
) const

Definition at line 47 of file Node.cpp.

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

Referenced by dtn::net::TCPConnection::connect(), dtn::net::UDPConvergenceLayer::queue(), and dtn::net::LOWPANConvergenceLayer::queue().

Here is the call graph for this function:

bool dtn::core::Node::URI::operator< ( const URI other) const

Definition at line 73 of file Node.cpp.

References protocol, type, and value.

bool dtn::core::Node::URI::operator== ( const URI other) const

Definition at line 84 of file Node.cpp.

References protocol, type, and value.

bool dtn::core::Node::URI::operator== ( const Node::Protocol p) const

Definition at line 89 of file Node.cpp.

bool dtn::core::Node::URI::operator== ( const Node::Type t) const

Definition at line 94 of file Node.cpp.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const Node::URI u 
)
friend

Definition at line 99 of file Node.cpp.

Member Data Documentation

const dtn::data::Timestamp dtn::core::Node::URI::expire

Definition at line 89 of file Node.h.

Referenced by dtn::core::Node::expire(), and dtn::core::operator<<().

const int dtn::core::Node::URI::priority

Definition at line 90 of file Node.h.

Referenced by dtn::core::compare_uri_priority(), and dtn::core::operator<<().

const Protocol dtn::core::Node::URI::protocol

Definition at line 87 of file Node.h.

Referenced by operator<(), dtn::core::operator<<(), and operator==().


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