Go to the documentation of this file.
41 #ifndef GNSSTK_QZSWEEKSECOND_HPP
42 #define GNSSTK_QZSWEEKSECOND_HPP
81 static const int n=16;
88 static const int bm=0xFFFF;
114 virtual std::string
printf(
const std::string& fmt)
const
119 std::string rv = fmt;
134 catch(gnsstk::StringUtils::StringException& e)
144 std::string rv = fmt;
147 "Vs",
"BadQZSepoch");
149 "hs",
"BadQZSfweek");
151 "is",
"BadQZSmweek");
160 catch(gnsstk::StringUtils::StringException& e)
171 for( IdToValue::const_iterator i = info.begin(); i != info.end(); i++ )
210 #endif // GNSSTK_QZSWEEKSECOND_HPP
int bitmask(void) const
Return the bitmask used to get the ModWeek from the full week.
long asInt(const std::string &s)
virtual unsigned int getEpoch() const
virtual std::string printf(const std::string &fmt) const
QZSWeekSecond(const CommonTime &right)
Constructor from CommonTime.
const long SEC_PER_DAY
Seconds per day.
virtual void convertFromCommonTime(const CommonTime &ct)
std::string asString(IonexStoreStrategy e)
Convert a IonexStoreStrategy to a whitespace-free string name.
virtual void setEpoch(unsigned int e)
virtual unsigned int getDayOfWeek() const
Force this interface on this classes descendants.
virtual void setModWeek(unsigned int w)
~QZSWeekSecond()
Destructor.
bool setFromInfo(const IdToValue &info)
QZSWeekSecond(unsigned int w=0, double s=0., TimeSystem ts=TimeSystem::QZS)
Constructor.
TimeSystem
Definition of various time systems.
int week
Full week number.
double asDouble(const std::string &s)
#define GNSSTK_RETHROW(exc)
long MJDEpoch(void) const
Return the Modified Julian Date (MJD) of epoch for this system.
const long QZS_EPOCH_MJD
Modified Julian Date of QZS epoch (Jan. 1, 1980).
std::string formattedPrint(const std::string &fmt, const std::string &pat, const std::string &rep, T to)
virtual std::string getDefaultFormat() const
Return a string containing the default format to use in printing.
virtual unsigned int getModWeek() const
virtual std::string getPrintChars() const
virtual std::string printError(const std::string &fmt) const
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:40