Public Member Functions | Public Attributes

dtn::data::CustodySignalBlock Class Reference

#include <CustodySignalBlock.h>

Inherits dtn::data::Block.

Collaboration diagram for dtn::data::CustodySignalBlock:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Definition at line 23 of file CustodySignalBlock.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

std::istream & dtn::data::CustodySignalBlock::deserialize ( std::istream &  stream  )  [virtual]

Deserialize the derived block payload.

Parameters:
stream A input stream to deserialize from.
Returns:
The same reference as given with the stream parameter.

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().

Here is the call graph for this function:

bool dtn::data::CustodySignalBlock::match ( const Bundle other  )  const
std::ostream & dtn::data::CustodySignalBlock::serialize ( std::ostream &  stream  )  const [virtual]

Serialize the derived block payload.

Parameters:
stream A output stream to serialize into.
Returns:
The same reference as given with the stream parameter.

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().

Here is the call graph for this function:

void dtn::data::CustodySignalBlock::setMatch ( const MetaBundle other  ) 
void dtn::data::CustodySignalBlock::setMatch ( const Bundle other  ) 

Member Data Documentation

Definition at line 37 of file CustodySignalBlock.h.

Referenced by deserialize(), getLength(), match(), serialize(), and setMatch().

Definition at line 41 of file CustodySignalBlock.h.

Referenced by deserialize(), getLength(), and serialize().


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