29 #ifndef CASA_MVEPOCH_H 30 #define CASA_MVEPOCH_H 34 #include <casacore/casa/aips.h> 35 #include <casacore/casa/Arrays/Vector.h> 36 #include <casacore/casa/Quanta/Quantum.h> 37 #include <casacore/casa/Quanta/MeasValue.h> 174 virtual void print(ostream &os)
const;
MVEpoch & operator-=(const MVEpoch &other)
Difference times.
MVEpoch operator+(const MVEpoch &other) const
MVEpoch & operator=(const MVEpoch &other)
Copy assignment.
virtual Vector< Quantum< Double > > getRecordValue() const
Get the internal value as a Vector<Quantity>.
MVEpoch operator-(const MVEpoch &other) const
virtual Bool putValue(const Vector< Quantum< Double > > &in)
Set the internal value if correct values and dimensions.
virtual void putVector(const Vector< Double > &in)
Set the value from internal units (set 0 for empty vector)
static const Double secInDay
Constants.
virtual MeasValue * clone() const
Clone a value.
Double getDayFraction() const
Get fraction of days.
Double wday
Whole days Note that if higher precision is needed, the splitting could be in 0.001 days and fraction...
virtual uInt type() const
Tell me your type.
Base class for values in a Measure.
static const Unit unitDay
MVEpoch()
Default constructor, generates default 0 epoch.
MVEpoch & operator+=(const MVEpoch &other)
Add times.
Bool operator!=(const MVEpoch &other) const
bool Bool
Define the standard types used by Casacore.
void addTime(Double in)
Add time from days.
Double frday
Fraction of days.
static void assure(const MeasValue &in)
Bool operator==(const MVEpoch &other) const
Comparisons.
A class for high precision time.
virtual void adjust()
Adjust the time to its constituent parts.
const Double e
e and functions thereof:
virtual void print(ostream &os) const
Print a value.
Double getDay() const
Get value of integer days.
Bool nearAbs(const MVEpoch &other, Double tol=1e-13) const
Bool near(const MVEpoch &other, Double tol=1e-13) const
this file contains all the compiler specific defines
virtual Vector< Double > getVector() const
Get the value in internal units.
Quantity getTime() const
Get value with units.
Double makeDay(const Quantity &in) const
Make days from quantity.