Go to the documentation of this file.
42 #ifndef GPSWEEKSECOND_HPP
43 #define GPSWEEKSECOND_HPP
80 static const int n=10;
87 static const int bm=0x3FF;
145 virtual std::string
printf(
const std::string& fmt)
const
150 std::string rv = fmt;
165 catch(gnsstk::StringUtils::StringException& e)
175 std::string rv = fmt;
178 "Es",
"BadGPSepoch");
180 "Fs",
"BadGPSfweek");
182 "Gs",
"BadGPSmweek");
191 catch(gnsstk::StringUtils::StringException& e)
201 for( IdToValue::const_iterator i = info.begin(); i != info.end(); i++ )
237 double diff =
sow - refTime.
sow;
259 #endif // GPSWEEKSECOND_HPP
long asInt(const std::string &s)
const long HALFWEEK
Seconds per half week.
virtual unsigned int getEpoch() const
bool operator==(const WeekSecond &right) const
const long SEC_PER_DAY
Seconds per day.
virtual void convertFromCommonTime(const CommonTime &ct)
bool operator>=(const WeekSecond &right) const
GPSWeekSecond & weekRolloverAdj(const GPSWeekSecond &refTime)
bool setFromInfo(const IdToValue &info)
std::string asString(IonexStoreStrategy e)
Convert a IonexStoreStrategy to a whitespace-free string name.
GPSWeekSecond(const CommonTime &right)
Constructor from CommonTime.
bool operator>=(const GPSWeekSecond &right) const
virtual void setEpoch(unsigned int e)
int bitmask(void) const
Return the bitmask used to get the ModWeek from the full week.
virtual std::string printError(const std::string &fmt) const
virtual unsigned int getDayOfWeek() const
Force this interface on this classes descendants.
bool operator!=(const GPSWeekSecond &right) const
virtual void setModWeek(unsigned int w)
long MJDEpoch(void) const
Return the Modified Julian Date (MJD) of epoch for this system.
bool operator<(const GPSWeekSecond &right) const
TimeSystem asTimeSystem(const std::string &s)
Convert a string representation of TimeSystem to an enum.
bool operator>(const GPSWeekSecond &right) const
const long GPS_EPOCH_MJD
Modified Julian Date of GPS epoch (Jan. 6, 1980).
~GPSWeekSecond()
Destructor.
TimeSystem
Definition of various time systems.
bool operator<(const WeekSecond &right) const
int week
Full week number.
double asDouble(const std::string &s)
#define GNSSTK_RETHROW(exc)
bool operator<=(const GPSWeekSecond &right) const
virtual std::string getPrintChars() const
bool operator>(const WeekSecond &right) const
virtual std::string printf(const std::string &fmt) const
GPSWeekSecond(unsigned int w=0, double s=0., TimeSystem ts=TimeSystem::GPS)
Constructor.
virtual std::string getDefaultFormat() const
Return a string containing the default format to use in printing.
std::string formattedPrint(const std::string &fmt, const std::string &pat, const std::string &rep, T to)
bool operator<=(const WeekSecond &right) const
bool operator==(const GPSWeekSecond &right) const
virtual unsigned int getModWeek() const
bool operator!=(const WeekSecond &right) const
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:39