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>
173 virtual void print(ostream &os)
const;
MVEpoch operator-(const MVEpoch &other) const
MVEpoch(Double inday, Double infrac=0)
Constructor with time in days.
Bool operator==(const MVEpoch &other) const
Comparisons.
Double wday
Whole days Note that if higher precision is needed, the splitting could be in 0.001 days and fraction...
Bool nearAbs(const MVEpoch &other, Double tol=1e-13) const
MVEpoch & operator=(const MVEpoch &other)
Copy assignment.
Double get() const
Get value in days.
MVEpoch operator+(const MVEpoch &other) const
MVEpoch()
Default constructor, generates default 0 epoch.
MVEpoch(const Quantum< Vector< Double > > &in)
MVEpoch(const Quantity &in1, const Quantity &in2)
virtual MeasValue * clone() const
Clone a value.
static const Double secInDay
Constants.
virtual void adjust()
Adjust the time to its constituent parts.
virtual void print(ostream &os) const
Print a value.
Bool near(const MVEpoch &other, Double tol=1e-13) const
virtual Vector< Double > getVector() const
Get the value in internal units.
virtual Vector< Quantum< Double > > getRecordValue() const
Get the internal value as a Vector<Quantity>.
Double makeDay(const Quantity &in) const
Make days from quantity.
virtual void adjust(Double &res)
Adjust value and return a normalisation value.
MVEpoch(const Vector< Quantity > &in)
MVEpoch & operator-=(const MVEpoch &other)
Difference times.
void addTime(Double in)
Add time from days.
static const Unit unitDay
MVEpoch(const MVEpoch &other)
Copy constructor.
MVEpoch(const Quantity &in)
Constructor with Quantities.
virtual void putVector(const Vector< Double > &in)
Set the value from internal units (set 0 for empty vector)
Quantity getTime() const
Get value with units.
MVEpoch(const Vector< Double > &inday)
MVEpoch & operator+=(const MVEpoch &other)
Add times.
static void assure(const MeasValue &in)
Tell me your type.
Quantity getTime(const Unit &unit) const
Double getDay() const
Get value of integer days.
Double getDayFraction() const
Get fraction of days.
virtual Bool putValue(const Vector< Quantum< Double > > &in)
Set the internal value if correct values and dimensions.
Bool operator!=(const MVEpoch &other) const
Double frday
Fraction of days.
const Double e
e and functions thereof:
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.