29 #ifndef MEASURES_MEASBASE_H
30 #define MEASURES_MEASBASE_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/casa/Arrays/ArrayFwd.h>
35 #include <casacore/measures/Measures/Measure.h>
36 #include <casacore/casa/Quanta/Quantum.h>
124 void set(
const Mv &dt,
const Mr &rf);
148 virtual void print(std::ostream &os)
const;
174 #ifndef CASACORE_NO_AUTO_TEMPLATES
175 #include <casacore/measures/Measures/MeasBase.tcc>
virtual const MeasValue * getData() const
Get pointer to data.
virtual Bool putValue(const Vector< Quantum< Double > > &in)
MeasBase(const Mv &dt, uInt rf)
Mv data
The measure value (e.g.
const Mv & getValue() const
Get Measure data.
const Unit & getUnit() const
Get Unit.
void set(const Unit &inunit)
MeasBase(const Quantity &dt, uInt rf)
void set(const Mv &dt)
Refill the specified entities.
Mr getRef() const
Get reference.
virtual MRBase * getRefPtr() const
Get reference pointer.
virtual void assured(const String &tp) const
Assert that we are the correct type.
void clear()
Error information MeasErr error;.
virtual void print(std::ostream &os) const
Print a Measure.
MeasBase(const MeasBase< Mv, Mr > &other)
Copy constructor.
MeasBase(const Quantity &dt, const Mr &rf)
MeasBase(const Mv &dt, const Mr &rf)
Create from data and reference.
virtual Bool areYou(const String &tp) const
Check the type of derived entity.
MeasBase(const Measure *dt)
virtual void set(const MeasValue &dt)
Each Measure should have the following set functions (with appropiate MVs and Ref):
Unit unit
Possible input units.
void set(const Mv &dt, const Mr &rf)
MeasBase()
Tip: In the following constructors and other functions, all MeasRef can be replaced with simple Measu...
Mr ref
Reference frame data.
MeasBase< Mv, Mr > & operator=(const MeasBase< Mv, Mr > &other)
Copy assignment.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.