Class definition for a GBOF ID (Global Bundle Or Fragment ID). More...
#include <GbofId.h>
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 > |
Class definition for a GBOF ID (Global Bundle Or Fragment ID).
Definition at line 31 of file GbofId.h.
| dtn::GbofId::GbofId | ( | EndpointID | source, | |
| BundleTimestamp | creation_ts, | |||
| bool | is_fragment, | |||
| u_int32_t | frag_length, | |||
| u_int32_t | frag_offset | |||
| ) |
| 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_.
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==().
Comparison operator.
Definition at line 96 of file GbofId.cc.
References creation_ts_, frag_length_, frag_offset_, is_fragment_, and source_.
| 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().
Creation timestamp.
Definition at line 74 of file GbofId.h.
Referenced by equals(), dtn::APIClient::handle_cancel(), operator<(), and str().
| u_int32_t dtn::GbofId::frag_length_ |
Length of original bundle.
Definition at line 76 of file GbofId.h.
Referenced by equals(), dtn::APIClient::handle_cancel(), operator<(), and str().
| u_int32_t dtn::GbofId::frag_offset_ |
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().
1.6.3