Go to the documentation of this file.
42 #ifndef GNSSTK_IRNWEEKSECOND_HPP
43 #define GNSSTK_IRNWEEKSECOND_HPP
82 static const int n=10;
89 static const int bm=0x03FF;
115 virtual std::string
printf(
const std::string& fmt)
const
120 std::string rv = fmt;
135 catch(gnsstk::StringUtils::StringException& e)
145 std::string rv = fmt;
148 "Xs",
"BadIRNepoch");
150 "Os",
"BadIRNfweek");
152 "os",
"BadIRNmweek");
161 catch(gnsstk::StringUtils::StringException& e)
173 for( IdToValue::const_iterator i = info.begin(); i != info.end(); i++ )
212 #endif // GNSSTK_IRNWEEKSECOND_HPP
bool setFromInfo(const IdToValue &info)
long MJDEpoch(void) const
Return the Modified Julian Date (MJD) of epoch for this system.
long asInt(const std::string &s)
virtual std::string getDefaultFormat() const
Return a string containing the default format to use in printing.
const long IRN_EPOCH_MJD
Modified Julian Date of BDS epoch (Aug 22, 1999).
virtual unsigned int getEpoch() const
~IRNWeekSecond() noexcept
Destructor.
const long SEC_PER_DAY
Seconds per day.
virtual void convertFromCommonTime(const CommonTime &ct)
virtual std::string getPrintChars() const
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)
TimeSystem asTimeSystem(const std::string &s)
Convert a string representation of TimeSystem to an enum.
TimeSystem
Definition of various time systems.
int week
Full week number.
double asDouble(const std::string &s)
#define GNSSTK_RETHROW(exc)
IRNWeekSecond(unsigned int w=0, double s=0., TimeSystem ts=TimeSystem::IRN)
Constructor.
std::string formattedPrint(const std::string &fmt, const std::string &pat, const std::string &rep, T to)
int bitmask(void) const
Return the bitmask used to get the ModWeek from the full week.
IRNWeekSecond(const CommonTime &right)
Constructor from CommonTime.
virtual std::string printf(const std::string &fmt) const
virtual unsigned int getModWeek() const
virtual std::string printError(const std::string &fmt) const
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:39