#include <CustodySignalBlock.h>
Inherits dtn::data::Block.

Public Member Functions | |
| CustodySignalBlock () | |
| virtual | ~CustodySignalBlock () |
| void | setMatch (const MetaBundle &other) |
| void | setMatch (const Bundle &other) |
| bool | match (const Bundle &other) const |
| virtual size_t | getLength () const |
| virtual std::ostream & | serialize (std::ostream &stream) const |
| virtual std::istream & | deserialize (std::istream &stream) |
Public Attributes | |
| char | _admfield |
| char | _status |
| SDNV | _fragment_offset |
| SDNV | _fragment_length |
| DTNTime | _timeofsignal |
| SDNV | _bundle_timestamp |
| SDNV | _bundle_sequence |
| EID | _source |
Definition at line 23 of file CustodySignalBlock.h.
| dtn::data::CustodySignalBlock::CustodySignalBlock | ( | ) |
Definition at line 18 of file CustodySignalBlock.cpp.
| dtn::data::CustodySignalBlock::~CustodySignalBlock | ( | ) | [virtual] |
Definition at line 24 of file CustodySignalBlock.cpp.
| std::istream & dtn::data::CustodySignalBlock::deserialize | ( | std::istream & | stream | ) | [virtual] |
Deserialize the derived block payload.
| stream | A input stream to deserialize from. |
Implements dtn::data::Block.
Definition at line 51 of file CustodySignalBlock.cpp.
References _admfield, _bundle_sequence, _bundle_timestamp, _fragment_length, _fragment_offset, _source, _status, and _timeofsignal.
| size_t dtn::data::CustodySignalBlock::getLength | ( | ) | const [virtual] |
Return the length of the payload, if this were an abstract block. It is the length put in the third field, after block type and processing flags.
Implements dtn::data::Block.
Definition at line 28 of file CustodySignalBlock.cpp.
References _admfield, _bundle_sequence, _bundle_timestamp, _fragment_length, _fragment_offset, _source, _status, _timeofsignal, dtn::data::DTNTime::getLength(), dtn::data::SDNV::getLength(), and dtn::data::EID::getString().

| bool dtn::data::CustodySignalBlock::match | ( | const Bundle & | other | ) | const |
Definition at line 130 of file CustodySignalBlock.cpp.
References _admfield, dtn::data::PrimaryBlock::_appdatalength, _bundle_sequence, _bundle_timestamp, _fragment_length, _fragment_offset, dtn::data::PrimaryBlock::_fragmentoffset, dtn::data::PrimaryBlock::_sequencenumber, dtn::data::PrimaryBlock::_source, _source, dtn::data::PrimaryBlock::_timestamp, dtn::data::PrimaryBlock::FRAGMENT, and dtn::data::PrimaryBlock::get().

| std::ostream & dtn::data::CustodySignalBlock::serialize | ( | std::ostream & | stream | ) | const [virtual] |
Serialize the derived block payload.
| stream | A output stream to serialize into. |
Implements dtn::data::Block.
Definition at line 76 of file CustodySignalBlock.cpp.
References _admfield, _bundle_sequence, _bundle_timestamp, _fragment_length, _fragment_offset, _source, _status, _timeofsignal, and dtn::data::EID::getString().

| void dtn::data::CustodySignalBlock::setMatch | ( | const MetaBundle & | other | ) |
Definition at line 98 of file CustodySignalBlock.cpp.
References _admfield, _bundle_sequence, _bundle_timestamp, _fragment_length, _fragment_offset, _source, dtn::data::MetaBundle::appdatalength, dtn::data::PrimaryBlock::FRAGMENT, dtn::data::MetaBundle::get(), dtn::data::BundleID::offset, dtn::data::BundleID::sequencenumber, dtn::data::BundleID::source, and dtn::data::BundleID::timestamp.
Referenced by dtn::core::BundleStorage::acceptCustody(), and dtn::core::BundleStorage::rejectCustody().

| void dtn::data::CustodySignalBlock::setMatch | ( | const Bundle & | other | ) |
Definition at line 114 of file CustodySignalBlock.cpp.
References _admfield, dtn::data::PrimaryBlock::_appdatalength, _bundle_sequence, _bundle_timestamp, _fragment_length, _fragment_offset, dtn::data::PrimaryBlock::_fragmentoffset, dtn::data::PrimaryBlock::_sequencenumber, dtn::data::PrimaryBlock::_source, _source, dtn::data::PrimaryBlock::_timestamp, dtn::data::PrimaryBlock::FRAGMENT, and dtn::data::PrimaryBlock::get().

Definition at line 37 of file CustodySignalBlock.h.
Referenced by deserialize(), getLength(), match(), serialize(), and setMatch().
Definition at line 43 of file CustodySignalBlock.h.
Referenced by deserialize(), getLength(), match(), dtn::core::BundleCore::raiseEvent(), serialize(), and setMatch().
Definition at line 42 of file CustodySignalBlock.h.
Referenced by deserialize(), getLength(), match(), dtn::core::BundleCore::raiseEvent(), serialize(), and setMatch().
Definition at line 40 of file CustodySignalBlock.h.
Referenced by deserialize(), getLength(), match(), dtn::core::BundleCore::raiseEvent(), serialize(), and setMatch().
Definition at line 39 of file CustodySignalBlock.h.
Referenced by deserialize(), getLength(), match(), dtn::core::BundleCore::raiseEvent(), serialize(), and setMatch().
Definition at line 44 of file CustodySignalBlock.h.
Referenced by deserialize(), getLength(), match(), dtn::core::BundleCore::raiseEvent(), serialize(), and setMatch().
Definition at line 38 of file CustodySignalBlock.h.
Referenced by dtn::core::BundleStorage::acceptCustody(), deserialize(), getLength(), and serialize().
Definition at line 41 of file CustodySignalBlock.h.
Referenced by deserialize(), getLength(), and serialize().
1.7.1