29 #ifndef MEASURES_MDOPPLER_H 30 #define MEASURES_MDOPPLER_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/MVDoppler.h> 43 template <
class M>
class MeasConvert;
44 template <
class M>
class ArrayMeasColumn;
45 template <
class M>
class ScalarMeasColumn;
46 template <
class T>
class Vector;
47 template <
class T>
class Quantum;
134 class MDoppler :
public MeasBase<MVDoppler, MeasRef<MDoppler> > {
184 MDoppler(const
MVDoppler &dt, const MDoppler::Ref &rf);
185 MDoppler(const
MVDoppler &dt, MDoppler::Types rf);
187 MDoppler(const
Quantity &dt, const MDoppler::Ref &rf);
188 MDoppler(const
Quantity &dt, MDoppler::Types rf);
202 static const
String &showMe();
233 const
uInt *&typ) const;
245 static
void checkMyTypes();
250 static
uInt myType();
typedef WHATEVER_SUN_TYPEDEF(MDoppler) Types Types
Reference enum Types (included originally for gcc 2.95)
A 1-D Specialization of the Array class.
MDoppler conversion routines.
Quantity get(const Unit &un) const
Get in specified units.
Internal value for MDoppler.
static void assure(const Measure &in)
virtual const String & tellMe() const
Tell me your type.
Physical quantities within reference frame.
ScalarMeasColumn< MDoppler > ScalarColumn
Measure table Columns (e.g., MDoppler::ScalarColumn)
virtual void checkTypes() const
Check if all internal tables of types (both enum and String) are complete and correct.
Base class for all measures.
Read only access to table array Measure columns.
static Bool getType(MDoppler::Types &tp, const String &in)
Translate string to reference code.
MeasConvert< MDoppler > Convert
Measure Convert (i.e.
virtual uInt type() const
Get the type (== Register() of derived Measure (faster than Strings) All should have: static uInt myT...
ArrayMeasColumn< MDoppler > ArrayColumn
Base class for values in a Measure.
MeasRef< MDoppler > Ref
Measure reference (i.e.
static const String & showType(MDoppler::Types tp)
virtual Bool setOffset(const Measure &in)
Set the offset in the reference (False if non-matching Measure)
MVDoppler MVType
Measure value container for this class (i.e.
virtual Measure * clone() const
Make a copy.
bool Bool
Define the standard types used by Casacore.
static MDoppler::Types castType(uInt tp)
Translate reference code.
static const String * allMyTypes(Int &nall, Int &nextra, const uInt *&typ)
Vector< Double > shiftFrequency(const Vector< Double > &freq) const
Shift the input frequencies to the output frequencies.
virtual const String * allTypes(Int &nall, Int &nextra, const uInt *&typ) const
Get a list of all known reference codes.
virtual Bool setRefString(const String &in)
Set the reference type to the specified String.
virtual const String & getDefaultType() const
Get the default reference type.
String: the storage and methods of handling collections of characters.
Read only access to table scalar Measure columns.
Bool giveMe(MDoppler::Ref &mr, const String &in)
MCDoppler MCType
Measure conversion routines for this class (i.e.
this file contains all the compiler specific defines
virtual String getRefString() const
Get the reference type (for records, including codes like R_)