Go to the documentation of this file.
42 #ifndef GNSSTK_BDSWEEKSECOND_HPP
43 #define GNSSTK_BDSWEEKSECOND_HPP
82 static const int n=13;
89 static const int bm=0x1FFF;
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 "Rs",
"BadBDSepoch");
150 "Ds",
"BadBDSfweek");
152 "es",
"BadBDSmweek");
161 catch(gnsstk::StringUtils::StringException& e)
173 for( IdToValue::const_iterator i = info.begin(); i != info.end(); i++ )
212 #endif // GNSSTK_BDSWEEKSECOND_HPP
long asInt(const std::string &s)
~BDSWeekSecond() noexcept
Destructor.
virtual unsigned int getEpoch() const
const long SEC_PER_DAY
Seconds per day.
virtual void convertFromCommonTime(const CommonTime &ct)
virtual std::string printf(const std::string &fmt) const
std::string asString(IonexStoreStrategy e)
Convert a IonexStoreStrategy to a whitespace-free string name.
virtual void setEpoch(unsigned int e)
virtual std::string getPrintChars() const
int bitmask(void) const
Return the bitmask used to get the ModWeek from the full week.
virtual unsigned int getDayOfWeek() const
Force this interface on this classes descendants.
long MJDEpoch(void) const
Return the Modified Julian Date (MJD) of epoch for this system.
virtual void setModWeek(unsigned int w)
BDSWeekSecond(unsigned int w=0, double s=0., TimeSystem ts=TimeSystem::BDT)
Constructor.
TimeSystem asTimeSystem(const std::string &s)
Convert a string representation of TimeSystem to an enum.
virtual std::string getDefaultFormat() const
Return a string containing the default format to use in printing.
TimeSystem
Definition of various time systems.
int week
Full week number.
double asDouble(const std::string &s)
#define GNSSTK_RETHROW(exc)
BDSWeekSecond(const CommonTime &right)
Constructor from CommonTime.
const long BDS_EPOCH_MJD
Modified Julian Date of BDS epoch (Jan. 1, 2006).
bool setFromInfo(const IdToValue &info)
virtual std::string printError(const std::string &fmt) const
std::string formattedPrint(const std::string &fmt, const std::string &pat, const std::string &rep, T to)
virtual unsigned int getModWeek() const
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:38