Go to the documentation of this file.
43 #ifndef GNSSTK_WEEK_HPP
44 #define GNSSTK_WEEK_HPP
46 #define timeSystemCheck if(timeSystem != right.timeSystem && \
47 timeSystem != TimeSystem::Any && right.timeSystem != TimeSystem::Any) \
48 GNSSTK_THROW(InvalidRequest( \
49 "CommonTime objects not in same time system, cannot be compared"))
90 virtual int Nbits(
void)
const = 0;
97 virtual int bitmask(
void)
const = 0;
111 virtual long MJDEpoch(
void)
const = 0;
194 unsigned int& w)
const
227 unsigned int halfroll =
rollover()/2;
232 else if(mw <= halfroll)
274 #undef timeSystemCheck
276 #endif // GNSSTK_WEEK_HPP
virtual unsigned int getWeek() const
virtual void adjustToYear(unsigned int y)
virtual unsigned int getEpoch() const
Week & operator=(const Week &right)
Assignment Operator.
virtual bool isValid() const
Returns true if this object's members are valid, false otherwise.
bool operator!=(const Week &right) const
virtual ~Week()
Virtual Destructor.
@ Any
wildcard; allows comparison with any other type
virtual void getEpochModWeek(unsigned int &e, unsigned int &w) const
const long MJD_JDAY
'Julian day' offset from MJD
virtual void setEpoch(unsigned int e)
bool operator<=(const Week &right) const
virtual int Nbits(void) const =0
@ Unknown
unknown time frame; for legacy code compatibility
bool operator==(const Week &right) const
virtual void setModWeek(unsigned int w)
page HOWTO subpage DoxygenGuide Documenting Your Code page DoxygenGuide Documenting Your Code todo Flesh out this document section doctips Tips for Documenting When defining make sure that the prototype is identical between the cpp and hpp including both the namespaces and the parameter names for you have std::string as the return type in the hpp file and string as the return type in the cpp Doxygen may get confused and autolink to the cpp version with no documentation If you don t use the same parameter names between the cpp and hpp that will also confuse Doxygen Don t put type information in return or param documentation It doesn t really add anything and will often cause Doxygen to complain and not produce the documentation< br > use note Do not put a comma after a param name unless you mean to document multiple parameters< br/> the output stream</code >< br/> y
virtual std::string getDefaultFormat() const
Return a string containing the default format to use in printing.
Week(int w=0, TimeSystem ts=TimeSystem::Unknown)
Constructor.
bool operator>(const Week &right) const
TimeSystem
Definition of various time systems.
bool operator>=(const Week &right) const
virtual int bitmask(void) const =0
int week
Full week number.
static const GNSSTK_EXPORT long END_LIMIT_JDAY
virtual unsigned int getDayOfWeek() const =0
Force this interface on this classes descendants.
virtual long MJDEpoch(void) const =0
bool operator<(const Week &right) const
long convertCalendarToJD(int yy, int mm, int dd)
virtual void reset()
Reset this object to the default state.
virtual void setEpochModWeek(unsigned int e, unsigned int w)
virtual unsigned int getModWeek() const
virtual int rollover(void) const
virtual std::string getPrintChars() const
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:42