Ginan
Loading...
Searching...
No Matches
GTime Struct Reference

Time structure used throughout this software. More...

Detailed Description

Time structure used throughout this software.

Collaboration diagram for GTime:

Public Member Functions

 GTime (GTow tow, GTime nearTime)
 
 GTime (BTow tow, GTime nearTime)
 
 GTime (RTod tod, GTime nearTime)
 
string to_string (int n=2) const
 
string to_ISOstring (int n=2) const
 
double to_decYear () const
 
bool operator== (const GTime &t2) const
 
bool operator!= (const GTime &t2) const
 
bool operator< (const GTime &t2) const
 
bool operator> (const GTime &t2) const
 
bool operator>= (const GTime &t2) const
 
GTime operator+ (const double t) const
 
GTime operator+ (const int t) const
 
GTime operator+ (const Duration duration) const
 
GTimeoperator+= (const double rhs)
 
GTimeoperator-= (const double rhs)
 
Duration operator- (const GTime t) const
 
GTime operator- (const double t) const
 
GTime operator- (const Duration duration) const
 
GTimeoperator++ (int)
 
 GTime ()
 
 GTime (GWeek gpsWeek, GTow tow)
 
 GTime (BWeek bdsWeek, BTow tow)
 
 GTime (MjDateTT mjdTT)
 
 GTime (MjDateUtc mjdUtc)
 
template<class ARCHIVE >
void serialize (ARCHIVE &ar, const unsigned int &version)
 
GTime floorTime (double period) const
 
string gregString ()
 Returns GTime in "dd-mmm-yyyy hh:mm:ss" format.
 
 operator long double () const
 
 operator MjDateTT () const
 
 operator GEpoch () const
 
 operator UtcTime () const
 
 operator GWeek () const
 
 operator BWeek () const
 
 operator GTow () const
 
 operator BTow () const
 
 operator PTime () const
 
 operator string () const
 
 operator RTod () const
 

Static Public Member Functions

static GTime noTime ()
 Uninitialised time for comparisons.
 

Data Fields

int cacheN = 0
 
long double cacheTime = -1
 
string cacheString
 
long double bigTime = 0
 

Friends

ostream & operator<< (ostream &os, const GTime &time)
 

Constructor & Destructor Documentation

◆ GTime() [1/8]

GTime::GTime ( GTow tow,
GTime nearTime )
Here is the call graph for this function:

◆ GTime() [2/8]

GTime::GTime ( BTow tow,
GTime nearTime )
Here is the call graph for this function:

◆ GTime() [3/8]

GTime::GTime ( RTod tod,
GTime nearTime )

◆ GTime() [4/8]

GTime::GTime ( )
inline

◆ GTime() [5/8]

GTime::GTime ( GWeek gpsWeek,
GTow tow )

◆ GTime() [6/8]

GTime::GTime ( BWeek bdsWeek,
BTow tow )

◆ GTime() [7/8]

GTime::GTime ( MjDateTT mjdTT)

◆ GTime() [8/8]

GTime::GTime ( MjDateUtc mjdUtc)
Here is the call graph for this function:

Member Function Documentation

◆ floorTime()

GTime GTime::floorTime ( double period) const
Here is the caller graph for this function:

◆ gregString()

string GTime::gregString ( )

Returns GTime in "dd-mmm-yyyy hh:mm:ss" format.

◆ noTime()

static GTime GTime::noTime ( )
inlinestatic

Uninitialised time for comparisons.

Here is the caller graph for this function:

◆ operator BTow()

GTime::operator BTow ( ) const
Here is the call graph for this function:

◆ operator BWeek()

GTime::operator BWeek ( ) const
Here is the call graph for this function:

◆ operator GEpoch()

GTime::operator GEpoch ( ) const
Here is the call graph for this function:

◆ operator GTow()

GTime::operator GTow ( ) const
Here is the call graph for this function:

◆ operator GWeek()

GTime::operator GWeek ( ) const
Here is the call graph for this function:

◆ operator long double()

GTime::operator long double ( ) const

◆ operator MjDateTT()

GTime::operator MjDateTT ( ) const

◆ operator PTime()

GTime::operator PTime ( ) const

◆ operator RTod()

GTime::operator RTod ( ) const
Here is the call graph for this function:

◆ operator string()

GTime::operator string ( ) const

◆ operator UtcTime()

GTime::operator UtcTime ( ) const
Here is the call graph for this function:

◆ operator!=()

bool GTime::operator!= ( const GTime & t2) const
inline

◆ operator+() [1/3]

GTime GTime::operator+ ( const double t) const
inline

◆ operator+() [2/3]

GTime GTime::operator+ ( const Duration duration) const
inline

◆ operator+() [3/3]

GTime GTime::operator+ ( const int t) const
inline

◆ operator++()

GTime & GTime::operator++ ( int )
inline

◆ operator+=()

GTime & GTime::operator+= ( const double rhs)
inline

◆ operator-() [1/3]

GTime GTime::operator- ( const double t) const
inline

◆ operator-() [2/3]

GTime GTime::operator- ( const Duration duration) const
inline

◆ operator-() [3/3]

Duration GTime::operator- ( const GTime t) const
inline

◆ operator-=()

GTime & GTime::operator-= ( const double rhs)
inline

◆ operator<()

bool GTime::operator< ( const GTime & t2) const
inline

◆ operator==()

bool GTime::operator== ( const GTime & t2) const
inline

◆ operator>()

bool GTime::operator> ( const GTime & t2) const
inline

◆ operator>=()

bool GTime::operator>= ( const GTime & t2) const
inline

◆ serialize()

template<class ARCHIVE >
void GTime::serialize ( ARCHIVE & ar,
const unsigned int & version )
inline

◆ to_decYear()

double GTime::to_decYear ( ) const
Here is the caller graph for this function:

◆ to_ISOstring()

string GTime::to_ISOstring ( int n = 2) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ to_string()

string GTime::to_string ( int n = 2) const

Friends And Related Symbol Documentation

◆ operator<<

ostream & operator<< ( ostream & os,
const GTime & time )
friend

Field Documentation

◆ bigTime

long double GTime::bigTime = 0

◆ cacheN

int GTime::cacheN = 0
mutable

◆ cacheString

string GTime::cacheString
mutable

◆ cacheTime

long double GTime::cacheTime = -1
mutable

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