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

#include <DTNTime.h>

Collaboration diagram for dtn::data::DTNTime:
Collaboration graph

Public Member Functions

 DTNTime ()
 
 DTNTime (const Timestamp &seconds, const Number &nanoseconds=0)
 
virtual ~DTNTime ()
 
const TimestampgetTimestamp () const
 
const NumbergetNanoseconds () const
 
void set ()
 
void operator+= (const Timestamp &value)
 
Length 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 32 of file DTNTime.h.

Constructor & Destructor Documentation

dtn::data::DTNTime::DTNTime ( )

Definition at line 30 of file DTNTime.cpp.

dtn::data::DTNTime::DTNTime ( const Timestamp seconds,
const Number nanoseconds = 0 
)

Definition at line 36 of file DTNTime.cpp.

dtn::data::DTNTime::~DTNTime ( )
virtual

Definition at line 41 of file DTNTime.cpp.

Member Function Documentation

Length dtn::data::DTNTime::getLength ( ) const

Definition at line 53 of file DTNTime.cpp.

References dtn::data::SDNV< E >::getLength().

Here is the call graph for this function:

const Number & dtn::data::DTNTime::getNanoseconds ( ) const

Definition at line 63 of file DTNTime.cpp.

const Number & dtn::data::DTNTime::getTimestamp ( ) const

Definition at line 58 of file DTNTime.cpp.

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

Definition at line 68 of file DTNTime.cpp.

void dtn::data::DTNTime::set ( )

set the DTNTime to the current time

Definition at line 45 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 73 of file DTNTime.cpp.

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

Definition at line 79 of file DTNTime.cpp.


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