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