This class handles the peculiar representation used in GLONASS nav messages.
Definition at line 59 of file GLONASSTime.hpp.
#include <GLONASSTime.hpp>

Public Member Functions | |
| void | convertFromCommonTime (const CommonTime &ct) override |
| As it says, convert from a CommonTime object. More... | |
| CommonTime | convertToCommonTime () const override |
| As it says, convert to a CommonTime object. More... | |
| GLONASSTime (const CommonTime &right) | |
| GLONASSTime (const GLONASSTime &right) | |
| GLONASSTime (const TimeTag &right) | |
| GLONASSTime (unsigned leapCount=0, unsigned days=0, double instant=0., TimeSystem ts=TimeSystem::GLO) | |
| ~GLONASSTime () | |
| Destructor (nothing to do). More... | |
Public Member Functions inherited from gnsstk::TimeTag | |
| virtual std::string | asString () const |
| bool | changeTimeSystem (TimeSystem timeSys) |
| bool | changeTimeSystem (TimeSystem timeSys, TimeSystemConverter *conv) |
| TimeSystem | getTimeSystem () const |
| Obtain time system info (enum). More... | |
| virtual | operator CommonTime () const |
| virtual void | scanf (const std::string &str, const std::string &fmt) |
| void | setTimeSystem (const TimeSystem &timeSys) |
| Set method for internal variable timeSystem (enum). More... | |
| TimeTag () | |
| Default constructor. More... | |
| TimeTag (const TimeSystem &ts) | |
| Constructor. More... | |
| virtual | ~TimeTag () |
| Virtual Destructor. More... | |
WeekSecond Comparison Operators | |
All comparison operators have a parameter "right" which corresponds to the GLONASSTime object to the right of the symbol. All comparison operators are const and return true on success and false on failure. | |
| unsigned | epoch |
| Number of leap years since 1996 (aka N4). More... | |
| unsigned | day |
| double | sod |
| Time of day (seconds of day, aka tb). More... | |
| bool | operator== (const GLONASSTime &right) const |
| bool | operator!= (const GLONASSTime &right) const |
| bool | operator< (const GLONASSTime &right) const |
| bool | operator> (const GLONASSTime &right) const |
| bool | operator<= (const GLONASSTime &right) const |
| bool | operator>= (const GLONASSTime &right) const |
| std::string | getPrintChars () const override |
| std::string | getDefaultFormat () const override |
| Return a string containing the default format to use in printing. More... | |
| std::string | printf (const std::string &fmt) const override |
| std::string | printError (const std::string &fmt) const override |
| bool | setFromInfo (const IdToValue &info) |
| bool | isValid () const override |
| Returns true if this object's members are valid, false otherwise. More... | |
| void | reset () override |
| Reset this object to the default state. More... | |
Additional Inherited Members | |
Public Types inherited from gnsstk::TimeTag | |
| typedef std::map< char, std::string > | IdToValue |
Static Public Member Functions inherited from gnsstk::TimeTag | |
| static void | checkTimeSystem (TimeSystem ts1, TimeSystem ts2) |
| static std::string | getError () |
| This returns the default error string for the TimeTag classes. More... | |
| static std::string | getFormatPrefixFloat () |
| static std::string | getFormatPrefixInt () |
| static void | getInfo (const std::string &str, const std::string &fmt, IdToValue &info) |
Protected Attributes inherited from gnsstk::TimeTag | |
| TimeSystem | timeSystem |
| time system (representation) of the data More... | |
| gnsstk::GLONASSTime::GLONASSTime | ( | unsigned | leapCount = 0, |
| unsigned | days = 0, |
||
| double | instant = 0., |
||
| TimeSystem | ts = TimeSystem::GLO |
||
| ) |
Constructor.
| [in] | leapCount | The number of leap years since 1996 (N4). |
| [in] | days | The number of days since the January 1 of the most recent leap year (NT or NA). |
| [in] | instant | The time of the day (tb). |
Definition at line 46 of file GLONASSTime.cpp.
|
inline |
Copy Constructor.
| [in] | right | the GLONASSTime object to copy |
Definition at line 77 of file GLONASSTime.hpp.
Alternate Copy Constructor. Takes a const TimeTag reference and copies its contents via conversion to CommonTime.
| [in] | right | the TimeTag-based object to copy |
| InvalidRequest | on over-/under-flow |
Definition at line 89 of file GLONASSTime.hpp.
|
inline |
Alternate Copy Constructor. Takes a const CommonTime reference and copies its contents via the convertFromCommonTime method.
| [in] | right | the CommonTime object to copy. |
| InvalidRequest | on over-/under-flow |
Definition at line 101 of file GLONASSTime.hpp.
|
inline |
Destructor (nothing to do).
Definition at line 107 of file GLONASSTime.hpp.
|
overridevirtual |
As it says, convert from a CommonTime object.
Implements gnsstk::TimeTag.
Definition at line 110 of file GLONASSTime.cpp.
|
overridevirtual |
As it says, convert to a CommonTime object.
Implements gnsstk::TimeTag.
Definition at line 59 of file GLONASSTime.cpp.
|
inlineoverridevirtual |
Return a string containing the default format to use in printing.
Implements gnsstk::TimeTag.
Definition at line 137 of file GLONASSTime.hpp.
|
inlineoverridevirtual |
Return a string containing the characters that this class understands when printing times.
Implements gnsstk::TimeTag.
Definition at line 132 of file GLONASSTime.hpp.
|
overridevirtual |
Returns true if this object's members are valid, false otherwise.
Implements gnsstk::TimeTag.
Definition at line 214 of file GLONASSTime.cpp.
| bool gnsstk::GLONASSTime::operator!= | ( | const GLONASSTime & | right | ) | const |
Definition at line 153 of file GLONASSTime.cpp.
| bool gnsstk::GLONASSTime::operator< | ( | const GLONASSTime & | right | ) | const |
Definition at line 160 of file GLONASSTime.cpp.
| bool gnsstk::GLONASSTime::operator<= | ( | const GLONASSTime & | right | ) | const |
Definition at line 186 of file GLONASSTime.cpp.
| bool gnsstk::GLONASSTime::operator== | ( | const GLONASSTime & | right | ) | const |
Definition at line 143 of file GLONASSTime.cpp.
| bool gnsstk::GLONASSTime::operator> | ( | const GLONASSTime & | right | ) | const |
Definition at line 173 of file GLONASSTime.cpp.
| bool gnsstk::GLONASSTime::operator>= | ( | const GLONASSTime & | right | ) | const |
Definition at line 200 of file GLONASSTime.cpp.
|
inlineoverridevirtual |
This function works similarly to printf. Instead of filling the format with data, it fills with error messages.
Implements gnsstk::TimeTag.
Definition at line 147 of file GLONASSTime.hpp.
|
inlineoverridevirtual |
This function formats this time to a string. The exceptions thrown would only be due to problems parsing the fmt string.
Implements gnsstk::TimeTag.
Definition at line 142 of file GLONASSTime.hpp.
|
overridevirtual |
Reset this object to the default state.
Implements gnsstk::TimeTag.
Definition at line 221 of file GLONASSTime.cpp.
Set this object using the information provided in info.
| info | the IdToValue object to which this object shall be set. |
Implements gnsstk::TimeTag.
Definition at line 154 of file GLONASSTime.hpp.
| unsigned gnsstk::GLONASSTime::day |
Days since Jan 1 of the current epoch (aka NT or NA.
Definition at line 167 of file GLONASSTime.hpp.
| unsigned gnsstk::GLONASSTime::epoch |
Number of leap years since 1996 (aka N4).
Definition at line 164 of file GLONASSTime.hpp.
| double gnsstk::GLONASSTime::sod |
Time of day (seconds of day, aka tb).
Definition at line 169 of file GLONASSTime.hpp.