29 #ifndef MEASURES_MFREQUENCY_H 30 #define MEASURES_MFREQUENCY_H 33 #include <casacore/casa/aips.h> 34 #include <casacore/measures/Measures/MeasBase.h> 35 #include <casacore/measures/Measures/MeasRef.h> 36 #include <casacore/casa/Quanta/MVFrequency.h> 45 template <
class M>
class MeasConvert;
46 template <
class M>
class ArrayMeasColumn;
47 template <
class M>
class ScalarMeasColumn;
161 class MFrequency :
public MeasBase<MVFrequency, MeasRef<MFrequency> > {
220 MFrequency(const
MVFrequency &dt, const MFrequency::Ref &rf);
221 MFrequency(const
MVFrequency &dt, MFrequency::Types rf);
223 MFrequency(const
Quantity &dt, const MFrequency::Ref &rf);
224 MFrequency(const
Quantity &dt, MFrequency::Types rf);
230 virtual ~MFrequency();
238 static const
String &showMe();
239 virtual
uInt type() const;
274 const
uInt *&typ) const;
286 static
void checkMyTypes();
291 static
uInt myType();
310 MFrequency::Types type);
314 MFrequency::Types type);
static Bool getType(MFrequency::Types &tp, const String &in)
Translate string to reference code.
MFrequency toRest(const MDoppler &dop)
Make a rest frequency using a Doppler velocity.
virtual void checkTypes() const
Check if all internal tables of types (both enum and String) are complete and correct.
Internal value for MFrequency.
virtual String getRefString() const
Get the reference type (for records, including codes like R_)
MVFrequency MVType
Measure value container for this class (i.e.
virtual Measure * clone() const
Make a copy.
MeasConvert< MFrequency > Convert
Measure conversion use (i.e.
A Measure: Doppler shift.
virtual const String & getDefaultType() const
Get the default reference type.
Physical quantities within reference frame.
ArrayMeasColumn< MFrequency > ArrayColumn
Quantity get(const Unit &un) const
Get frequency in specified units.
Base class for all measures.
Read only access to table array Measure columns.
virtual const String * allTypes(Int &nall, Int &nextra, const uInt *&typ) const
Get a list of all known reference codes.
Base class for values in a Measure.
virtual Bool setOffset(const Measure &in)
Set the offset in the reference (False if non-matching Measure)
MeasRef< MFrequency > Ref
Measure reference (i.e.
bool Bool
Define the standard types used by Casacore.
static const String & showType(MFrequency::Types tp)
static MFrequency fromDoppler(const MDoppler &dop, const MVFrequency &rest)
Make a frequency from the Doppler velocity and the specified rest frequency (default reference type L...
static const String * allMyTypes(Int &nall, Int &nextra, const uInt *&typ)
ScalarMeasColumn< MFrequency > ScalarColumn
Measure table Columns (e.g., MFrequency::ScalarColumn)
MCFrequency MCType
Measure conversion routines for this class (i.e.
MFrequency conversion routines.
virtual Bool setRefString(const String &in)
Set the reference type to the specified String.
typedef WHATEVER_SUN_TYPEDEF(MFrequency) Types Types
Reference enum Types (included originally for gcc 2.95)
String: the storage and methods of handling collections of characters.
static void assure(const Measure &in)
MDoppler toDoppler(const MVFrequency &rest)
Make a Doppler velocity from the frequency and the specified rest frequency.
Read only access to table scalar Measure columns.
Bool giveMe(MFrequency::Ref &mr, const String &in)
virtual const String & tellMe() const
Tell me your type.
static MFrequency::Types typeFromString(const String &in)
Throws an exception if the type string is not recognized.
this file contains all the compiler specific defines
static MFrequency::Types castType(uInt tp)
Translate reference code.