Go to the documentation of this file.
53 "Sun",
"Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat"
57 "Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
77 static_cast<long>(
sod ),
78 sod -
static_cast<long>(
sod ),
81 catch (InvalidParameter& ip)
83 InvalidRequest ir(ip);
95 InvalidRequest ir(
"Unable to convert CommonTime to GPSWeekZcount.");
106 week =
static_cast<int>(
day / 7 );
111 +
static_cast<long>(
static_cast<double>(
sod + fsod ) / 1.5 );
140 catch( gnsstk::StringUtils::StringException& exc )
168 catch( gnsstk::StringUtils::StringException& exc )
180 for( IdToValue::const_iterator i = info.begin(); i != info.end(); i++ )
250 gnsstk::InvalidRequest exc(
"addWeeks results in negative week");
262 short originalWeek(
week);
263 long originalZcount(
zcount);
287 catch (gnsstk::InvalidRequest& ir)
295 catch (gnsstk::InvalidParameter& ip)
299 gnsstk::InvalidRequest ir(ip);
351 (
long(
zcount) -
long(right.zcount)));
368 unsigned long inZcountBlock,
369 unsigned long inZcountOffset)
376 if ((
week == other.week) &&
377 (((
zcount - inZcountOffset) / inZcountBlock) ==
378 ((other.zcount - inZcountOffset) / inZcountBlock)))
387 long((other.getTotalZcounts() - inZcountOffset) / inZcountBlock))
long asInt(const std::string &s)
GPSWeekZcount & addWeeks(short inWeeks)
virtual bool setFromInfo(const IdToValue &info)
GPSWeekZcount operator+(long inZcounts) const
unsigned int getZcount32() const
GPSWeek & operator=(const GPSWeek &right)
Assignment Operator.
unsigned long getTotalZcounts() const noexcept
virtual void convertFromCommonTime(const CommonTime &ct)
GPSWeekZcount & setZcount32(unsigned int z)
virtual unsigned int getDayOfWeek() const
Force this interface on this classes descendants.
@ Any
wildcard; allows comparison with any other type
GPSWeekZcount & operator--()
std::string asString(IonexStoreStrategy e)
Convert a IonexStoreStrategy to a whitespace-free string name.
const long MJD_JDAY
'Julian day' offset from MJD
virtual void setWeek10(unsigned int w)
virtual CommonTime convertToCommonTime() const
static const unsigned int bits19
This is just a 19-bit mask.
static const char * weekday[]
unsigned int getZcount29() const
TimeSystem asTimeSystem(const std::string &s)
Convert a string representation of TimeSystem to an enum.
virtual std::string printf(const std::string &fmt) const
virtual std::string printError(const std::string &fmt) const
GPSWeekZcount operator-(long inZcounts) const
const long GPS_EPOCH_MJD
Modified Julian Date of GPS epoch (Jan. 6, 1980).
static const char * weekdayAbbr[]
GPSWeekZcount & operator-=(long inZcounts)
GPSWeekZcount & operator+=(long inZcounts)
GPSWeekZcount(int w=0, int z=0, TimeSystem ts=TimeSystem::GPS)
void get(long &day, long &sod, double &fsod, TimeSystem &timeSystem) const
#define GNSSTK_RETHROW(exc)
GPSWeekZcount & operator++()
virtual bool setFromInfo(const IdToValue &info)
static const GNSSTK_EXPORT int bits10
virtual std::string printError(const std::string &fmt) const
bool inSameTimeBlock(const GPSWeekZcount &other, unsigned long inZcountBlock, unsigned long inZcountOffset=0) noexcept
const long ZCOUNT_PER_DAY
Zcounts in a day.
const long ZCOUNT_PER_WEEK
Zcounts in a week.
#define GNSSTK_THROW(exc)
GPSWeekZcount & setZcount29(unsigned int z)
std::string formattedPrint(const std::string &fmt, const std::string &pat, const std::string &rep, T to)
GPSWeekZcount & operator=(const GPSWeekZcount &right)
GPSWeekZcount & addZcounts(long inZcounts)
virtual std::string printf(const std::string &fmt) const
CommonTime & set(long day, long sod, double fsod=0.0, TimeSystem timeSystem=TimeSystem::Unknown)
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:39