Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

VldTimeStamp.h File Reference

#include "Rtypes.h"
#include "Riosfwd.h"
#include <time.h>
#include <iosfwd>

Go to the source code of this file.

Classes

class  VldTimeStamp
 Encapsulate the seconds and ns since EPOCH. More...

Typedefs

typedef timespec timespec_t
typedef tm tm_t

Functions

std::ostream & operator<< (std::ostream &os, const VldTimeStamp &vldts)
Bool_t operator== (const VldTimeStamp &lhs, const VldTimeStamp &rhs)
Bool_t operator!= (const VldTimeStamp &lhs, const VldTimeStamp &rhs)
Bool_t operator< (const VldTimeStamp &lhs, const VldTimeStamp &rhs)
Bool_t operator<= (const VldTimeStamp &lhs, const VldTimeStamp &rhs)
Bool_t operator> (const VldTimeStamp &lhs, const VldTimeStamp &rhs)
Bool_t operator>= (const VldTimeStamp &lhs, const VldTimeStamp &rhs)
VldTimeStamp operator- (const VldTimeStamp &lhs, const VldTimeStamp &rhs)


Typedef Documentation

typedef struct timespec timespec_t
 

Definition at line 98 of file VldTimeStamp.h.

Referenced by VldTimeStamp::GetTimeSpec().

typedef struct tm tm_t
 

Definition at line 99 of file VldTimeStamp.h.


Function Documentation

Bool_t operator!= const VldTimeStamp lhs,
const VldTimeStamp rhs
[inline]
 

Definition at line 310 of file VldTimeStamp.h.

References VldTimeStamp::fNanoSec, and VldTimeStamp::fSec.

00311    { return lhs.fSec  != rhs.fSec ||
00312             lhs.fNanoSec != rhs.fNanoSec; }

VldTimeStamp operator- const VldTimeStamp lhs,
const VldTimeStamp rhs
[inline]
 

Definition at line 334 of file VldTimeStamp.h.

References VldTimeStamp::GetNanoSec(), and VldTimeStamp::GetSec().

00335 {
00336     return VldTimeStamp(lhs.GetSec()     - rhs.GetSec(),
00337                         lhs.GetNanoSec() - rhs.GetNanoSec());
00338 }

Bool_t operator< const VldTimeStamp lhs,
const VldTimeStamp rhs
[inline]
 

Definition at line 314 of file VldTimeStamp.h.

References VldTimeStamp::fNanoSec, and VldTimeStamp::fSec.

00315    { return lhs.fSec  < rhs.fSec ||
00316              ( lhs.fSec  == rhs.fSec &&
00317                lhs.fNanoSec <  rhs.fNanoSec   ); }

std::ostream& operator<< std::ostream &  os,
const VldTimeStamp vldts
 

Definition at line 50 of file VldTimeStamp.cxx.

00051 {
00052    if (os.good()) {
00053       if (os.tie()) os.tie()->flush(); // instead of opfx
00054       os << ts.AsString("c");
00055    }
00056    // instead of os.osfx()
00057    if (os.flags() & std::ios::unitbuf) os.flush();
00058    return os;
00059 }

Bool_t operator<= const VldTimeStamp lhs,
const VldTimeStamp rhs
[inline]
 

Definition at line 319 of file VldTimeStamp.h.

References VldTimeStamp::fNanoSec, and VldTimeStamp::fSec.

00320    { return lhs.fSec  < rhs.fSec ||
00321              ( lhs.fSec  == rhs.fSec &&
00322                lhs.fNanoSec <= rhs.fNanoSec   ); }

Bool_t operator== const VldTimeStamp lhs,
const VldTimeStamp rhs
[inline]
 

Definition at line 306 of file VldTimeStamp.h.

References VldTimeStamp::fNanoSec, and VldTimeStamp::fSec.

00307    { return lhs.fSec  == rhs.fSec && 
00308             lhs.fNanoSec == rhs.fNanoSec; }

Bool_t operator> const VldTimeStamp lhs,
const VldTimeStamp rhs
[inline]
 

Definition at line 324 of file VldTimeStamp.h.

References VldTimeStamp::fNanoSec, and VldTimeStamp::fSec.

00325    { return lhs.fSec  > rhs.fSec ||
00326              ( lhs.fSec  == rhs.fSec &&
00327                lhs.fNanoSec >  rhs.fNanoSec   ); }

Bool_t operator>= const VldTimeStamp lhs,
const VldTimeStamp rhs
[inline]
 

Definition at line 329 of file VldTimeStamp.h.

References VldTimeStamp::fNanoSec, and VldTimeStamp::fSec.

00330    { return lhs.fSec  > rhs.fSec ||
00331              ( lhs.fSec  == rhs.fSec &&
00332                lhs.fNanoSec >= rhs.fNanoSec   ); }


Generated on Thu Nov 1 15:55:14 2007 for loon by  doxygen 1.3.9.1