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

#include <Node.h>

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

Public Member Functions

 Attribute (const Type t, const std::string &name, const std::string &value, const dtn::data::Number &timeout=0, const int priority=0)
 
 ~Attribute ()
 
bool operator< (const Attribute &other) const
 
bool operator== (const Attribute &other) const
 
bool operator== (const std::string &name) const
 

Public Attributes

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

Friends

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

Detailed Description

Definition at line 103 of file Node.h.

Constructor & Destructor Documentation

dtn::core::Node::Attribute::Attribute ( const Type  t,
const std::string &  name,
const std::string &  value,
const dtn::data::Number timeout = 0,
const int  priority = 0 
)

Definition at line 105 of file Node.cpp.

dtn::core::Node::Attribute::~Attribute ( )

Definition at line 110 of file Node.cpp.

Member Function Documentation

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

Definition at line 114 of file Node.cpp.

References name, and type.

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

Definition at line 122 of file Node.cpp.

References name, and type.

bool dtn::core::Node::Attribute::operator== ( const std::string &  name) const

Definition at line 127 of file Node.cpp.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const Node::Attribute a 
)
friend

Definition at line 132 of file Node.cpp.

Member Data Documentation

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

Definition at line 112 of file Node.h.

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

const std::string dtn::core::Node::Attribute::name

Definition at line 110 of file Node.h.

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

const int dtn::core::Node::Attribute::priority

Definition at line 113 of file Node.h.

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

const Type dtn::core::Node::Attribute::type

Definition at line 109 of file Node.h.

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

const std::string dtn::core::Node::Attribute::value

Definition at line 111 of file Node.h.

Referenced by dtn::core::operator<<().


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