Definition at line 49 of file CommonTime_T.cpp.
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 () |
![]() | |
CommonTime (TimeSystem timeSystem=TimeSystem::Unknown) | |
CommonTime (const CommonTime &right) | |
CommonTime & | operator= (const CommonTime &right) |
virtual | ~CommonTime () |
Destructor. More... | |
CommonTime & | set (long day, long sod, double fsod=0.0, TimeSystem timeSystem=TimeSystem::Unknown) |
CommonTime & | set (long day, double sod=0.0, TimeSystem timeSystem=TimeSystem::Unknown) |
CommonTime & | set (double day, TimeSystem timeSys=TimeSystem::Unknown) |
CommonTime & | setInternal (long day=0, long msod=0, double fsod=0.0, TimeSystem timeSys=TimeSystem::Unknown) |
CommonTime & | setTimeSystem (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 |
CommonTime & | operator+= (double seconds) |
CommonTime & | operator-= (double seconds) |
CommonTime & | addSeconds (double seconds) |
CommonTime & | addDays (long days) |
CommonTime & | addSeconds (long seconds) |
CommonTime & | addMilliseconds (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 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< TimeSystemConverter > | tsConv |
![]() | |
CommonTime (long day, long sod, double fsod, TimeSystem timeSystem=TimeSystem::Unknown) | |
bool | add (long days, long msod, double fsod) |
bool | normalize () |
![]() | |
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... | |
CommonTime_T::CommonTime_T | ( | ) |
Default Constructor, set the precision value.
Definition at line 96 of file CommonTime_T.cpp.
unsigned CommonTime_T::arithmeticTest | ( | ) |
Test to check arithmetic operations function properly.
Definition at line 488 of file CommonTime_T.cpp.
unsigned CommonTime_T::changeTimeSystemTest | ( | ) |
Definition at line 823 of file CommonTime_T.cpp.
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.
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.
unsigned CommonTime_T::operatorTest | ( | ) |
Test the comparison operators.
Definition at line 577 of file CommonTime_T.cpp.
unsigned CommonTime_T::printfTest | ( | ) |
Test Formatted Printing.
Definition at line 727 of file CommonTime_T.cpp.
unsigned CommonTime_T::resetTest | ( | ) |
Test will check the reset method.
Definition at line 655 of file CommonTime_T.cpp.
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.
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.
unsigned CommonTime_T::timeSystemTest | ( | ) |
Test will check the TimeSystem comparisons when using the comparison operators.
Definition at line 675 of file CommonTime_T.cpp.
|
private |
Definition at line 91 of file CommonTime_T.cpp.