DTN::SDNV Class Reference

Self-delimited numeric values. More...

#include <dtn/Header.h>

List of all members.

Public Member Functions

 SDNV ()
 Default constructor.
 SDNV (uint64_t l)
 Construct a SDNV from a uint64_t.
 SDNV (const ByteString &s)
 Construct a SDNV from a ByteString.
 SDNV (const SDNV &v)
 Copy constructor.
 ~SDNV ()
 Destructor.
SDNVoperator= (uint64_t l)
 Assignment operator from uint64_t.
SDNVoperator= (const SDNV &v)
 Assignment operator from another SDNV.
 operator uint64_t () const
 Convert SDNV to a uint64_t.
const ByteString & val () const
 Representation as a serialized string of bytes.


Detailed Description

Self-delimited numeric values.

These are described in draft-irtf-dtnrg-bundle-spec-04. The internal representation will be in serialization order, but all interactions with built in types are with values in host byte order. That is, a SDNV can be used as a normal integral type, but will (as if by magic) be directly writable into (for example) a bundle header.

Definition at line 51 of file Header.h.


The documentation for this class was generated from the following files:
Generated on Mon Mar 24 11:15:48 2008 for Pydtn Simulator by  doxygen 1.5.4