Go to the documentation of this file.
39 #ifndef GNSSTK_GPSWEEK_HPP
40 #define GNSSTK_GPSWEEK_HPP
42 #include "gnsstk_export.h"
87 GNSSTK_EXPORT
static const int bits10 = 0x3FF;
125 gnsstk::InvalidRequest ir(
"CommonTime objects not in same time system, cannot be compared");
139 gnsstk::InvalidRequest ir(
"CommonTime objects not in same time system, cannot be compared");
153 gnsstk::InvalidRequest ir(
"CommonTime objects not in same time system, cannot be compared");
167 gnsstk::InvalidRequest ir(
"CommonTime objects not in same time system, cannot be compared");
181 gnsstk::InvalidRequest ir(
"CommonTime objects not in same time system, cannot be compared");
203 unsigned int& w)
const
231 virtual std::string
printf(
const std::string& fmt )
const;
235 virtual std::string
printError(
const std::string& fmt )
const;
278 #endif // GNSSTK_GPSTIME_HPP
virtual bool setFromInfo(const IdToValue &info)
GPSWeek & operator=(const GPSWeek &right)
Assignment Operator.
virtual std::string getDefaultFormat() const
Return a string containing the default format to use in printing.
virtual unsigned int getDayOfWeek() const =0
Force this interface on this classes descendants.
bool operator<=(const GPSWeek &right) const
virtual unsigned int getEpoch() const
virtual void setEpoch(unsigned int e)
virtual bool isValid() const
Returns true if this object's members are valid, false otherwise.
virtual void getEpochWeek10(unsigned int &e, unsigned int &w) const
virtual void reset()
Reset this object to the default state.
virtual ~GPSWeek()
Virtual Destructor.
@ Any
wildcard; allows comparison with any other type
virtual void setWeek10(unsigned int w)
virtual unsigned int getWeek10() const
@ Unknown
unknown time frame; for legacy code compatibility
virtual std::string printError(const std::string &fmt) const
bool operator<(const GPSWeek &right) const
static const GNSSTK_EXPORT int MAX_WEEK
TimeSystem
Definition of various time systems.
virtual void setEpochWeek10(unsigned int e, unsigned int w)
bool operator>=(const GPSWeek &right) const
bool operator>(const GPSWeek &right) const
bool operator==(const GPSWeek &right) const
virtual std::string getPrintChars() const
static const GNSSTK_EXPORT int bits10
#define GNSSTK_THROW(exc)
GPSWeek(int w=0, TimeSystem ts=TimeSystem::Unknown)
Constructor.
bool operator!=(const GPSWeek &right) const
virtual std::string printf(const std::string &fmt) const
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:39