28 #ifndef CASA_MVDOPPLER_H
29 #define CASA_MVDOPPLER_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/casa/Arrays/Vector.h>
35 #include <casacore/casa/Quanta/QC.h>
36 #include <casacore/casa/Quanta/Quantum.h>
37 #include <casacore/casa/Quanta/MeasValue.h>
38 #include <casacore/casa/iosfwd.h>
147 virtual void print(ostream &os)
const;
Double makeD(Double v, const Unit &dt, Bool rev=False) const
Get correct data type conversion factor from input Quantum.
Quantity get(const Unit &unit) const
Get the Doppler value in (recognised) specified units.
virtual Vector< Quantum< Double > > getRecordValue() const
Get the internal value as a Vector<Quantity>.
MVDoppler(const Vector< Double > &other)
Constructor from Vector.
MVDoppler(const Quantity &other)
Constructor from Quantum : value taken will be the canonical value.
Bool near(const MVDoppler &other, Double tol=1e-13) const
Bool operator!=(const MVDoppler &other) const
virtual Vector< Double > getVector() const
Get the value in internal units.
Bool operator==(const MVDoppler &other) const
Comparisons.
MVDoppler(const MVDoppler &other)
Copy constructor.
virtual MeasValue * clone() const
Clone.
MVDoppler()
Default constructor: generate a zero value.
MVDoppler & operator-=(const MVDoppler &other)
MVDoppler(const Quantum< Vector< Double > > &other)
Bool nearAbs(const MVDoppler &other, Double tol=1e-13) const
MVDoppler(const Vector< Quantity > &other)
Double getValue() const
Adjust value: taken from base class, a NOP.
virtual void print(ostream &os) const
Print data.
virtual Bool putValue(const Vector< Quantum< Double > > &in)
Set the internal value if correct values and dimensions.
MVDoppler(Double d)
Constructor from Double.
static void assure(const MeasValue &in)
Tell me your type.
Quantity get() const
Get quantity in m/s.
MVDoppler & operator=(const MVDoppler &other)
Copy assignment.
virtual void putVector(const Vector< Double > &in)
Set the value from internal units (set 0 for empty vector)
MVDoppler & operator+=(const MVDoppler &other)
Addition.
const Double e
e and functions thereof:
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.