dtn::GbofId Class Reference

Class definition for a GBOF ID (Global Bundle Or Fragment ID). More...

#include <GbofId.h>

List of all members.

Public Member Functions

 GbofId ()
 GbofId (EndpointID source, BundleTimestamp creation_ts, bool is_fragment, u_int32_t frag_length, u_int32_t frag_offset)
 ~GbofId ()
bool equals (const GbofId &id) const
 Compares if GBOF IDs are the same.
bool equals (EndpointID, BundleTimestamp, bool, u_int32_t, u_int32_t) const
 Compares if fields match those of this GBOF ID.
bool operator== (const GbofId &id) const
 Equality operator.
bool operator< (const GbofId &other) const
 Comparison operator.
std::string str () const
 Returns a string version of the gbof.

Public Attributes

EndpointID source_
 Source eid.
BundleTimestamp creation_ts_
 Creation timestamp.
bool is_fragment_
 Fragmentary Bundle.
u_int32_t frag_length_
 Length of original bundle.
u_int32_t frag_offset_
 Offset of fragment in original bundle.

Friends

class oasys::InlineFormatter< GbofId >

Detailed Description

Class definition for a GBOF ID (Global Bundle Or Fragment ID).

Definition at line 31 of file GbofId.h.


Constructor & Destructor Documentation

dtn::GbofId::GbofId (  ) 

Definition at line 54 of file GbofId.cc.

dtn::GbofId::GbofId ( EndpointID  source,
BundleTimestamp  creation_ts,
bool  is_fragment,
u_int32_t  frag_length,
u_int32_t  frag_offset 
)

Definition at line 59 of file GbofId.cc.

dtn::GbofId::~GbofId (  ) 

Definition at line 73 of file GbofId.cc.


Member Function Documentation

bool dtn::GbofId::equals ( EndpointID  source,
BundleTimestamp  creation_ts,
bool  is_fragment,
u_int32_t  frag_length,
u_int32_t  frag_offset 
) const

Compares if fields match those of this GBOF ID.

Definition at line 120 of file GbofId.cc.

References creation_ts_, dtn::EndpointID::equals(), frag_length_, frag_offset_, dtn::BundleTimestamp::seconds_, dtn::BundleTimestamp::seqno_, and source_.

bool dtn::GbofId::equals ( const GbofId id  )  const

Compares if GBOF IDs are the same.

Definition at line 79 of file GbofId.cc.

References creation_ts_, dtn::EndpointID::equals(), frag_length_, frag_offset_, dtn::BundleTimestamp::seconds_, dtn::BundleTimestamp::seqno_, and source_.

Referenced by dtn::BundleList::find(), and operator==().

bool dtn::GbofId::operator< ( const GbofId other  )  const

Comparison operator.

Definition at line 96 of file GbofId.cc.

References creation_ts_, frag_length_, frag_offset_, is_fragment_, and source_.

bool dtn::GbofId::operator== ( const GbofId id  )  const [inline]

Equality operator.

Definition at line 59 of file GbofId.h.

References equals().

std::string dtn::GbofId::str (  )  const

Returns a string version of the gbof.

Definition at line 141 of file GbofId.cc.

References creation_ts_, frag_length_, frag_offset_, dtn::BundleTimestamp::seconds_, dtn::BundleTimestamp::seqno_, source_, and dtn::EndpointID::str().

Referenced by dtn::APIClient::handle_cancel().


Friends And Related Function Documentation

friend class oasys::InlineFormatter< GbofId > [friend]

Definition at line 79 of file GbofId.h.


Member Data Documentation

Creation timestamp.

Definition at line 74 of file GbofId.h.

Referenced by equals(), dtn::APIClient::handle_cancel(), operator<(), and str().

Length of original bundle.

Definition at line 76 of file GbofId.h.

Referenced by equals(), dtn::APIClient::handle_cancel(), operator<(), and str().

Offset of fragment in original bundle.

Definition at line 77 of file GbofId.h.

Referenced by equals(), dtn::APIClient::handle_cancel(), operator<(), and str().

Fragmentary Bundle.

Definition at line 75 of file GbofId.h.

Referenced by dtn::APIClient::handle_cancel(), and operator<().

Source eid.

Definition at line 73 of file GbofId.h.

Referenced by equals(), dtn::APIClient::handle_cancel(), operator<(), and str().


The documentation for this class was generated from the following files:
Generated on Sun Nov 21 13:21:13 2010 for DTN Reference Implementation by  doxygen 1.6.3