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