IBR-DTNSuite  0.8
dtn::data::DTNTime Class Reference

#include <DTNTime.h>

List of all members.

Public Member Functions

 DTNTime ()
 DTNTime (size_t seconds, size_t nanoseconds=0)
 DTNTime (SDNV seconds, SDNV nanoseconds)
virtual ~DTNTime ()
SDNV getTimestamp () const
void set ()
void operator+= (const size_t value)
size_t getLength () const

Friends

std::ostream & operator<< (std::ostream &stream, const dtn::data::DTNTime &obj)
std::istream & operator>> (std::istream &stream, dtn::data::DTNTime &obj)

Detailed Description

Definition at line 17 of file DTNTime.h.


Constructor & Destructor Documentation

Definition at line 16 of file DTNTime.cpp.

dtn::data::DTNTime::DTNTime ( size_t  seconds,
size_t  nanoseconds = 0 
)

Definition at line 22 of file DTNTime.cpp.

dtn::data::DTNTime::DTNTime ( SDNV  seconds,
SDNV  nanoseconds 
)

Definition at line 27 of file DTNTime.cpp.

Definition at line 32 of file DTNTime.cpp.


Member Function Documentation

Definition at line 44 of file DTNTime.cpp.

References dtn::data::SDNV::getLength().

Referenced by dtn::data::CustodySignalBlock::getLength(), and dtn::data::StatusReportBlock::getLength().

Here is the call graph for this function:

Definition at line 49 of file DTNTime.cpp.

void dtn::data::DTNTime::operator+= ( const size_t  value)

Definition at line 54 of file DTNTime.cpp.

set the DTNTime to the current time

Definition at line 36 of file DTNTime.cpp.

References dtn::utils::Clock::gettimeofday().

Here is the call graph for this function:


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const dtn::data::DTNTime obj 
) [friend]

Definition at line 59 of file DTNTime.cpp.

std::istream& operator>> ( std::istream &  stream,
dtn::data::DTNTime obj 
) [friend]

Definition at line 65 of file DTNTime.cpp.


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