29 #ifndef CASA_MEASVALUE_H
30 #define CASA_MEASVALUE_H
40 template <
class Qtype>
class Quantum;
41 template <
class T>
class Vector;
161 virtual void print(ostream &os)
const = 0;
virtual void readjust(Double val)
Re-adjust, i.e.
std::vector< double > Vector
virtual uInt type() const =0
Assert that we are the correct MeasValue type.
virtual Vector< Double > getVector() const =0
Get the internal value as a Vector<Double>.
ostream & operator<<(ostream &os, const std::pair< T, U > &p)
virtual Vector< Quantum< Double > > getTMRecordValue() const
virtual ~MeasValue()
Destructor.
virtual void putVector(const Vector< Double > &in)=0
Set the internal value from a Vector of values (obtained in principle with a getVector()).
virtual Vector< Quantum< Double > > getRecordValue() const =0
Get the internal value as a Vector<Quantity>.
Base class for values in a Measure.
virtual MeasValue * clone() const =0
Clone a MeasValue.
virtual Vector< Quantum< Double > > getXRecordValue() const
void dummy_operator() const
The following operators should be present at least.
bool Bool
Define the standard types used by Casacore.
void dummy_constr() const
Each derived class should have at least the following constructors:
virtual Bool putValue(const Vector< Quantum< Double > > &in)=0
Set the internal value if correct values and dimensions.
virtual void print(ostream &os) const =0
Print a MeasValue.
virtual void adjust()
Some of the Measure values used need the occasional adjustments to proper values. ...
friend ostream & operator<<(ostream &os, const MeasValue &meas)
Output a MeasValue.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.