29 #ifndef MEASURES_MRADIALVELOCITY_H 30 #define MEASURES_MRADIALVELOCITY_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/MVRadialVelocity.h> 41 class MRadialVelocity;
42 class MCRadialVelocity;
43 template <
class M>
class MeasConvert;
44 template <
class M>
class ArrayMeasColumn;
45 template <
class M>
class ScalarMeasColumn;
137 class MRadialVelocity :
public MeasBase<MVRadialVelocity, MeasRef<MRadialVelocity> > {
191 MRadialVelocity(const
MVRadialVelocity &dt, const MRadialVelocity::Ref &rf);
193 MRadialVelocity(const
Quantity &dt);
194 MRadialVelocity(const
Quantity &dt, const MRadialVelocity::Ref &rf);
195 MRadialVelocity(const
Quantity &dt, MRadialVelocity::Types rf);
196 MRadialVelocity(const
Measure *dt);
201 virtual ~MRadialVelocity();
209 static const
String &showMe();
240 const
uInt *&typ) const;
252 static
void checkMyTypes();
257 static
uInt myType();
273 MRadialVelocity::Types typ);
276 MRadialVelocity::Types typ);
virtual uInt type() const
Get the type (== Register() of derived Measure (faster than Strings) All should have: static uInt myT...
typedef WHATEVER_SUN_TYPEDEF(MRadialVelocity) Types Types
Reference enum Types (included originally for gcc 2.95)
static Bool getType(MRadialVelocity::Types &tp, const String &in)
Translate string to reference code.
static const String & showType(MRadialVelocity::Types tp)
virtual String getRefString() const
Get the reference type (for records, including codes like R_)
virtual const String & getDefaultType() const
Get the default reference type.
A Measure: Doppler shift.
MeasConvert< MRadialVelocity > Convert
Measure conversion use (i.e.
MCRadialVelocity MCType
Measure conversion routines for this class (i.e.
Physical quantities within reference frame.
ArrayMeasColumn< MRadialVelocity > ArrayColumn
virtual Bool setRefString(const String &in)
Set the reference type to the specified String.
Base class for all measures.
Read only access to table array Measure columns.
Bool giveMe(MRadialVelocity::Ref &mr, const String &in)
MVRadialVelocity MVType
Measure value container for this class (i.e.
virtual const String & tellMe() const
Tell me your type.
Internal value for MRadialVelocity.
Base class for values in a Measure.
MRadialVelocity conversion routines.
Quantity get(const Unit &un) const
Get radial velocity in specified units.
static MRadialVelocity fromDoppler(const MDoppler &dop)
Make a RadialVelocity from the Doppler velocity (assuming LSRK default)
bool Bool
Define the standard types used by Casacore.
virtual void checkTypes() const
Check if all internal tables of types (both enum and String) are complete and correct.
MeasRef< MRadialVelocity > Ref
Measure reference (i.e.
virtual Measure * clone() const
Make a copy.
static void assure(const Measure &in)
String: the storage and methods of handling collections of characters.
Read only access to table scalar Measure columns.
ScalarMeasColumn< MRadialVelocity > ScalarColumn
Measure table Columns (e.g., MRadialVelocity::ScalarColumn)
virtual const String * allTypes(Int &nall, Int &nextra, const uInt *&typ) const
Get a list of all known reference codes.
virtual Bool setOffset(const Measure &in)
Set the offset in the reference (False if non-matching Measure)
this file contains all the compiler specific defines
static const String * allMyTypes(Int &nall, Int &nextra, const uInt *&typ)
static MRadialVelocity::Types castType(uInt tp)
Translate reference code.