26#ifndef CASA_MVDOPPLER_H
27#define CASA_MVDOPPLER_H
31#include <casacore/casa/aips.h>
32#include <casacore/casa/Arrays/Vector.h>
33#include <casacore/casa/Quanta/QC.h>
34#include <casacore/casa/Quanta/Quantum.h>
35#include <casacore/casa/Quanta/MeasValue.h>
36#include <casacore/casa/iosfwd.h>
145 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.
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
Bool operator==(const MVDoppler &other) const
Comparisons.
virtual Vector< Double > getVector() const
Get the value in internal units.
MVDoppler(const MVDoppler &other)
Copy constructor.
MVDoppler()
Default constructor: generate a zero value.
MVDoppler & operator-=(const MVDoppler &other)
MVDoppler & operator+=(const MVDoppler &other)
Addition.
MVDoppler(const Quantum< Vector< Double > > &other)
Bool nearAbs(const MVDoppler &other, Double tol=1e-13) const
MVDoppler & operator=(const MVDoppler &other)
Copy assignment.
virtual MeasValue * clone() const
Clone.
MVDoppler(const Vector< Quantity > &other)
Double getValue() const
Adjust value: taken from base class, a NOP.
virtual Vector< Quantum< Double > > getRecordValue() const
Get the internal value as a Vector<Quantity>.
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.
virtual void putVector(const Vector< Double > &in)
Set the value from internal units (set 0 for empty vector)
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.