dtn::ProphetBundle Class Reference

#include <ProphetBundle.h>

Inheritance diagram for dtn::ProphetBundle:

prophet::Bundle

List of all members.


Detailed Description

Unification class that ties together Prophet's metadata view with DTN's complete Bundle object.

Definition at line 30 of file ProphetBundle.h.


Public Member Functions

 ProphetBundle (const BundleRef &bundle)
 Constructor.
 ProphetBundle (const ProphetBundle &other)
 Constructor.
virtual ~ProphetBundle ()
 Destructor.
ProphetBundleoperator= (const ProphetBundle &other)
 Assignment operator.
const BundleRefref () const
 Return const ref to BundleRef member.
virtual const std::string & destination_id () const
 Virtual from prophet::Bundle.
virtual const std::string & source_id () const
 Virtual from prophet::Bundle.
virtual u_int32_t creation_ts () const
 Virtual from prophet::Bundle.
virtual u_int32_t sequence_num () const
 Virtual from prophet::Bundle.
virtual u_int32_t expiration_ts () const
 Virtual from prophet::Bundle.
virtual u_int size () const
 Virtual from prophet::Bundle.
virtual u_int num_forward () const
 Virtual from prophet::Bundle.
virtual bool custody_requested () const
 Virtual from prophet::Bundle.

Protected Attributes

BundleRef ref_
 DTN bundle object.
std::string str_
 return value for NULL condition

Constructor & Destructor Documentation

dtn::ProphetBundle::ProphetBundle ( const BundleRef bundle  )  [inline]

Constructor.

Definition at line 36 of file ProphetBundle.h.

References ref_.

dtn::ProphetBundle::ProphetBundle ( const ProphetBundle other  )  [inline]

Constructor.

Definition at line 45 of file ProphetBundle.h.

virtual dtn::ProphetBundle::~ProphetBundle (  )  [inline, virtual]

Destructor.

Definition at line 51 of file ProphetBundle.h.

References ref_.


Member Function Documentation

ProphetBundle& dtn::ProphetBundle::operator= ( const ProphetBundle other  )  [inline]

Assignment operator.

Definition at line 59 of file ProphetBundle.h.

References ref_.

const BundleRef& dtn::ProphetBundle::ref (  )  const [inline]

Return const ref to BundleRef member.

Definition at line 68 of file ProphetBundle.h.

References ref_.

Referenced by creation_ts(), custody_requested(), destination_id(), expiration_ts(), num_forward(), sequence_num(), size(), and source_id().

virtual const std::string& dtn::ProphetBundle::destination_id (  )  const [inline, virtual]

Virtual from prophet::Bundle.

Implements prophet::Bundle.

Definition at line 71 of file ProphetBundle.h.

References ref(), ref_, and str_.

virtual const std::string& dtn::ProphetBundle::source_id (  )  const [inline, virtual]

Virtual from prophet::Bundle.

Implements prophet::Bundle.

Definition at line 75 of file ProphetBundle.h.

References ref(), ref_, and str_.

virtual u_int32_t dtn::ProphetBundle::creation_ts (  )  const [inline, virtual]

Virtual from prophet::Bundle.

Implements prophet::Bundle.

Definition at line 79 of file ProphetBundle.h.

References ref(), and ref_.

virtual u_int32_t dtn::ProphetBundle::sequence_num (  )  const [inline, virtual]

Virtual from prophet::Bundle.

Implements prophet::Bundle.

Definition at line 83 of file ProphetBundle.h.

References ref(), and ref_.

virtual u_int32_t dtn::ProphetBundle::expiration_ts (  )  const [inline, virtual]

Virtual from prophet::Bundle.

Implements prophet::Bundle.

Definition at line 87 of file ProphetBundle.h.

References ref(), and ref_.

virtual u_int dtn::ProphetBundle::size (  )  const [inline, virtual]

Virtual from prophet::Bundle.

Implements prophet::Bundle.

Definition at line 91 of file ProphetBundle.h.

References ref(), and ref_.

virtual u_int dtn::ProphetBundle::num_forward (  )  const [inline, virtual]

Virtual from prophet::Bundle.

Implements prophet::Bundle.

Definition at line 95 of file ProphetBundle.h.

References dtn::ForwardingInfo::COPY_ACTION, ref(), ref_, and dtn::ForwardingInfo::TRANSMITTED.

virtual bool dtn::ProphetBundle::custody_requested (  )  const [inline, virtual]

Virtual from prophet::Bundle.

Implements prophet::Bundle.

Definition at line 101 of file ProphetBundle.h.

References ref(), and ref_.


Member Data Documentation

std::string dtn::ProphetBundle::str_ [protected]

return value for NULL condition

Definition at line 110 of file ProphetBundle.h.

Referenced by destination_id(), and source_id().


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

Generated on Mon Jul 21 14:12:21 2008 for DTN Reference Implementation by  doxygen 1.5.6