isce3  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Public Attributes | List of all members
isce3::core::TimeDelta Class Reference

Data structure to store TimeDelta to double precision seconds. More...

#include <TimeDelta.h>

Public Member Functions

 TimeDelta ()
 Empty constructor.
 
 TimeDelta (double ss)
 Constructor with seconds.
 
 TimeDelta (int hh, int mm, int ss)
 Constructor with hours, minutes and seconds.
 
 TimeDelta (int hh, int mm, double ss)
 Constructor with hours, minutes and seconds.
 
 TimeDelta (int hh, int mm, int ss, double ff)
 Constructor with hours, minutes, seconds and fractional seconds.
 
 TimeDelta (int days, int hours, int minutes, int seconds, double frac)
 Constructor with days, hours, minutes, seconds and fractional seconds.
 
 TimeDelta (const TimeDelta &ts)
 Copy constructor.
 
void _init (int days, int hours, int minutes, int seconds, double frac)
 Internal function for use with constructors.
 
void _normalize ()
 Internal function.
 
bool operator< (const TimeDelta &ts) const
 
bool operator< (double ts) const
 
bool operator> (const TimeDelta &ts) const
 
bool operator> (double ts) const
 
bool operator<= (const TimeDelta &ts) const
 
bool operator<= (double ts) const
 
bool operator>= (const TimeDelta &ts) const
 
bool operator>= (double ts) const
 
bool operator== (const TimeDelta &ts) const
 
bool operator== (double ts) const
 
bool operator!= (const TimeDelta &ts) const
 
bool operator!= (double ts) const
 
TimeDeltaoperator= (const TimeDelta &ts)
 
TimeDeltaoperator= (double ss)
 
TimeDeltaoperator+= (const TimeDelta &ts)
 
TimeDeltaoperator+= (const double &s)
 
TimeDeltaoperator-= (const TimeDelta &ts)
 
TimeDeltaoperator-= (const double &s)
 
TimeDelta operator+ (const TimeDelta &ts) const
 
TimeDelta operator+ (const double &s) const
 
TimeDelta operator- (const TimeDelta &ts) const
 
TimeDelta operator- (const double &s) const
 
TimeDelta operator* (const double &s) const
 
TimeDeltaoperator*= (const double &s)
 
TimeDelta operator/ (const double &s) const
 
TimeDeltaoperator/= (const double &s)
 
double getTotalDays () const
 Return equivalent double precision days.
 
double getTotalHours () const
 Return equivalent double precision hours.
 
double getTotalMinutes () const
 Return equivalent double precision minutes.
 
double getTotalSeconds () const
 Return equivalent double precision seconds.
 

Public Attributes

int days
 Integer days.
 
int hours
 Integer hours.
 
int minutes
 Integer minutes.
 
int seconds
 Integer seconds.
 
double frac
 Double precision fractional seconds.
 

Detailed Description

Data structure to store TimeDelta to double precision seconds.

The intent of the class is to assist in translating DateTime tags to double precision floats w.r.t Reference epoch for numerical computation and vice-versa


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

Generated for ISCE3.0 by doxygen 1.8.5.