28 #ifndef CASA_MVFREQUENCY_H
29 #define CASA_MVFREQUENCY_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>
153 virtual void print(ostream &os)
const;
Double getValue() const
Adjust value: taken from base class, a NOP.
MVFrequency & operator+=(const MVFrequency &other)
Addition.
virtual void putVector(const Vector< Double > &in)
Set the value from internal units (set 0 for empty vector)
virtual Vector< Double > getVector() const
Get the value in internal units.
virtual MeasValue * clone() const
Clone.
MVFrequency & operator=(const MVFrequency &other)
Copy assignment.
Bool operator==(const MVFrequency &other) const
Comparisons.
Quantity get() const
Get quantity in Hz.
virtual Bool putValue(const Vector< Quantum< Double > > &in)
Set the internal value if correct values and dimensions.
MVFrequency & operator-=(const MVFrequency &other)
MVFrequency()
Default constructor: generate a zero value.
Bool operator!=(const MVFrequency &other) const
~MVFrequency()
Destructor.
MVFrequency(const MVFrequency &other)
Copy constructor.
MVFrequency(const Quantum< Vector< Double > > &other)
MVFrequency(const Quantity &other)
Constructor from Quantum : value taken will be the canonical value.
virtual void print(ostream &os) const
Print data.
static void assure(const MeasValue &in)
Tell me your type.
MVFrequency(const Vector< Quantity > &other)
Bool nearAbs(const MVFrequency &other, Double tol=1e-13) const
virtual Vector< Quantum< Double > > getRecordValue() const
Get the internal value as a Vector<Quantity>.
Bool near(const MVFrequency &other, Double tol=1e-13) const
MVFrequency(Double d)
Constructor from Double, assuming Hz.
Quantity get(const Unit &unit) const
Get the wave characteristics in (recognised) specified units.
MVFrequency(const Vector< Double > &other)
Constructor from Vector.
Double makeF(Double v, const Unit &dt, Bool rev=False) const
Get correct data type conversion factor from input Quantum.
const Double e
e and functions thereof:
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.