Public Member Functions | Private Attributes | List of all members
CommonTime_T Class Reference

Detailed Description

Definition at line 49 of file CommonTime_T.cpp.

Inheritance diagram for CommonTime_T:
Inheritance graph
[legend]

Public Member Functions

unsigned arithmeticTest ()
 Test to check arithmetic operations function properly. More...
 
unsigned changeTimeSystemTest ()
 
 CommonTime_T ()
 Default Constructor, set the precision value. More...
 
unsigned improperSetTest ()
 
unsigned initializationTest ()
 
unsigned operatorTest ()
 Test the comparison operators. More...
 
unsigned printfTest ()
 Test Formatted Printing. More...
 
unsigned resetTest ()
 Test will check the reset method. More...
 
unsigned rolloverTest ()
 
unsigned setComparisonTest ()
 
unsigned timeSystemTest ()
 
- Public Member Functions inherited from gnsstk::CommonTime
 CommonTime (TimeSystem timeSystem=TimeSystem::Unknown)
 
 CommonTime (const CommonTime &right)
 
CommonTimeoperator= (const CommonTime &right)
 
virtual ~CommonTime ()
 Destructor. More...
 
CommonTimeset (long day, long sod, double fsod=0.0, TimeSystem timeSystem=TimeSystem::Unknown)
 
CommonTimeset (long day, double sod=0.0, TimeSystem timeSystem=TimeSystem::Unknown)
 
CommonTimeset (double day, TimeSystem timeSys=TimeSystem::Unknown)
 
CommonTimesetInternal (long day=0, long msod=0, double fsod=0.0, TimeSystem timeSys=TimeSystem::Unknown)
 
CommonTimesetTimeSystem (TimeSystem timeSystem)
 
bool changeTimeSystem (TimeSystem timeSystem, TimeSystemConverter *conv)
 
bool changeTimeSystem (TimeSystem timeSystem)
 
void get (long &day, long &sod, double &fsod, TimeSystem &timeSystem) const
 
void get (long &day, long &sod, double &fsod) const
 
void get (long &day, double &sod, TimeSystem &timeSystem) const
 
void get (long &day, double &sod) const
 
void get (double &day, TimeSystem &timeSystem) const
 
void get (double &day) const
 
void getInternal (long &day, long &msod, double &fsod, TimeSystem &timeSystem) const
 
void getInternal (long &day, long &msod, double &fsod) const
 
double getDays () const
 Obtain the time, in days, including the fraction of a day. More...
 
double getSecondOfDay () const
 Obtain the seconds of day (ignoring the day). More...
 
TimeSystem getTimeSystem () const
 Obtain time system info (enum). More...
 
double operator- (const CommonTime &right) const
 
CommonTime operator+ (double seconds) const
 
CommonTime operator- (double seconds) const
 
CommonTimeoperator+= (double seconds)
 
CommonTimeoperator-= (double seconds)
 
CommonTimeaddSeconds (double seconds)
 
CommonTimeaddDays (long days)
 
CommonTimeaddSeconds (long seconds)
 
CommonTimeaddMilliseconds (long ms)
 
bool operator== (const CommonTime &right) const
 
bool operator!= (const CommonTime &right) const
 
bool operator< (const CommonTime &right) const
 
bool operator> (const CommonTime &right) const
 
bool operator<= (const CommonTime &right) const
 
bool operator>= (const CommonTime &right) const
 
void reset ()
 
std::string asString () const
 

Private Attributes

double eps
 

Additional Inherited Members

- Static Public Attributes inherited from gnsstk::CommonTime
static const GNSSTK_EXPORT long BEGIN_LIMIT_JDAY = 0L
 
static const GNSSTK_EXPORT long END_LIMIT_JDAY = 3442448L
 
static const GNSSTK_EXPORT CommonTime BEGINNING_OF_TIME
 earliest representable CommonTime More...
 
static const GNSSTK_EXPORT CommonTime END_OF_TIME
 latest representable CommonTime More...
 
static const GNSSTK_EXPORT double eps = 4.*std::numeric_limits<double>::epsilon()
 Default tolerance for time equality in days. More...
 
static GNSSTK_EXPORT std::shared_ptr< TimeSystemConvertertsConv
 
- Protected Member Functions inherited from gnsstk::CommonTime
 CommonTime (long day, long sod, double fsod, TimeSystem timeSystem=TimeSystem::Unknown)
 
bool add (long days, long msod, double fsod)
 
bool normalize ()
 
- Protected Attributes inherited from gnsstk::CommonTime
long m_day
 
long m_msod
 milliseconds-of-day 0 <= val < 86400000 More...
 
double m_fsod
 fractional seconds-of-day 0 <= val < 0.001 More...
 
TimeSystem m_timeSystem
 time frame (system representation) of the data More...
 

Constructor & Destructor Documentation

◆ CommonTime_T()

CommonTime_T::CommonTime_T ( )

Default Constructor, set the precision value.

Definition at line 96 of file CommonTime_T.cpp.

Member Function Documentation

◆ arithmeticTest()

unsigned CommonTime_T::arithmeticTest ( )

Test to check arithmetic operations function properly.

Definition at line 488 of file CommonTime_T.cpp.

◆ changeTimeSystemTest()

unsigned CommonTime_T::changeTimeSystemTest ( )

Definition at line 823 of file CommonTime_T.cpp.

◆ improperSetTest()

unsigned CommonTime_T::improperSetTest ( )

Test to see if setting improper values induces the correct exception handling.

Definition at line 191 of file CommonTime_T.cpp.

◆ initializationTest()

unsigned CommonTime_T::initializationTest ( )

Test to see if any of the standard assignment methods break when using proper inputs.

Definition at line 103 of file CommonTime_T.cpp.

◆ operatorTest()

unsigned CommonTime_T::operatorTest ( )

Test the comparison operators.

Definition at line 577 of file CommonTime_T.cpp.

◆ printfTest()

unsigned CommonTime_T::printfTest ( )

Test Formatted Printing.

Definition at line 727 of file CommonTime_T.cpp.

◆ resetTest()

unsigned CommonTime_T::resetTest ( )

Test will check the reset method.

Definition at line 655 of file CommonTime_T.cpp.

◆ rolloverTest()

unsigned CommonTime_T::rolloverTest ( )

Test to check arithmetic operations function properly when rolling over or under the three time variables

Definition at line 746 of file CommonTime_T.cpp.

◆ setComparisonTest()

unsigned CommonTime_T::setComparisonTest ( )

Test to check the various set methods are equivalent when they should be.

Definition at line 417 of file CommonTime_T.cpp.

◆ timeSystemTest()

unsigned CommonTime_T::timeSystemTest ( )

Test will check the TimeSystem comparisons when using the comparison operators.

Definition at line 675 of file CommonTime_T.cpp.

Member Data Documentation

◆ eps

double CommonTime_T::eps
private

Definition at line 91 of file CommonTime_T.cpp.


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


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:43