Go to the documentation of this file.
42 #ifndef GNSSTK_GALWEEKSECOND_HPP
43 #define GNSSTK_GALWEEKSECOND_HPP
80 static const int n=12;
87 static const int bm=0xFFF;
113 virtual std::string
printf(
const std::string& fmt)
const
118 std::string rv = fmt;
133 catch(gnsstk::StringUtils::StringException& e)
143 std::string rv = fmt;
146 "Ts",
"BadGALepoch");
148 "Ls",
"BadGALfweek");
150 "ls",
"BadGALmweek");
159 catch(gnsstk::StringUtils::StringException& e)
171 for( IdToValue::const_iterator i = info.begin(); i != info.end(); i++ )
212 double diff =
sow - refTime.
sow;
234 #endif // GNSSTK_GALWEEKSECOND_HPP
long asInt(const std::string &s)
const long HALFWEEK
Seconds per half week.
bool setFromInfo(const IdToValue &info)
WeekSecond(unsigned int w=0, double s=0., TimeSystem ts=TimeSystem::Unknown)
virtual unsigned int getEpoch() const
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.
long MJDEpoch(void) const
Return the Modified Julian Date (MJD) of epoch for this system.
virtual void setEpoch(unsigned int e)
virtual std::string getDefaultFormat() const
Return a string containing the default format to use in printing.
virtual std::string printError(const std::string &fmt) const
virtual unsigned int getDayOfWeek() const
Force this interface on this classes descendants.
GALWeekSecond(unsigned int w=0, double s=0., TimeSystem ts=TimeSystem::GAL) noexcept
Constructor.
GALWeekSecond(const CommonTime &right)
Constructor from CommonTime.
virtual void setModWeek(unsigned int w)
virtual std::string printf(const std::string &fmt) const
TimeSystem asTimeSystem(const std::string &s)
Convert a string representation of TimeSystem to an enum.
virtual std::string getPrintChars() const
@ GAL
Galileo system time.
GALWeekSecond & weekRolloverAdj(const GALWeekSecond &refTime)
TimeSystem
Definition of various time systems.
int week
Full week number.
double asDouble(const std::string &s)
#define GNSSTK_RETHROW(exc)
const long GAL_EPOCH_MJD
Modified Julian Date of GAL epoch (Aug 22 1999)
int bitmask(void) const
Return the bitmask used to get the ModWeek from the full week.
std::string formattedPrint(const std::string &fmt, const std::string &pat, const std::string &rep, T to)
virtual unsigned int getModWeek() const
~GALWeekSecond() noexcept
Destructor.
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:39