Go to the documentation of this file.
64 catch (InvalidParameter& ip)
66 InvalidRequest ir(ip);
80 if ( ct < MIN_CT || ct > MAX_CT )
82 InvalidRequest ir(
"Unable to convert given CommonTime to ANSITime.");
99 std::string rv( fmt );
107 catch( StringUtils::StringException&
se )
118 std::string rv( fmt );
126 catch( StringUtils::StringException&
se )
134 using namespace StringUtils;
136 for( IdToValue::const_iterator i = info.begin(); i != info.end(); i++ )
192 return ( !
operator==( right ) );
202 InvalidRequest ir(
"CommonTime objects not in same time system, cannot be compared");
211 return ( !
operator<=( right ) );
216 return (
operator<( right ) ||
217 operator==( right ) );
222 return ( !
operator<( right ) );
bool operator>(const ANSITime &right) const
long asInt(const std::string &s)
double se
obliquity cos, T*cos, sin coefficients
static const GNSSTK_EXPORT double eps
Default tolerance for time equality in days.
const long SEC_PER_DAY
Seconds per day.
@ Any
wildcard; allows comparison with any other type
std::string asString(IonexStoreStrategy e)
Convert a IonexStoreStrategy to a whitespace-free string name.
bool operator<(const ANSITime &right) const
const long MJD_JDAY
'Julian day' offset from MJD
virtual std::string printf(const std::string &fmt) const
@ Unknown
unknown time frame; for legacy code compatibility
virtual bool setFromInfo(const IdToValue &info)
const long UNIX_MJD
Modified Julian Date of UNIX epoch (Jan. 1, 1970).
TimeSystem asTimeSystem(const std::string &s)
Convert a string representation of TimeSystem to an enum.
virtual std::string printError(const std::string &fmt) const
virtual void convertFromCommonTime(const CommonTime &ct)
void get(long &day, long &sod, double &fsod, TimeSystem &timeSystem) const
#define GNSSTK_RETHROW(exc)
virtual void reset()
Reset this object to the default state.
bool operator<=(const ANSITime &right) const
#define GNSSTK_THROW(exc)
std::string formattedPrint(const std::string &fmt, const std::string &pat, const std::string &rep, T to)
virtual CommonTime convertToCommonTime() const
virtual bool isValid() const
Returns true if this object's members are valid, false otherwise.
bool operator!=(const ANSITime &right) const
ANSITime(time_t t=0, const TimeSystem &ts=TimeSystem::Unknown)
ANSITime & operator=(const ANSITime &right)
bool operator==(const ANSITime &right) const
bool operator>=(const ANSITime &right) const
CommonTime & set(long day, long sod, double fsod=0.0, TimeSystem timeSystem=TimeSystem::Unknown)
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:38