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>
237 const uInt *&typ)
const;
virtual const String & tellMe() const
Tell me your type.
MeasConvert< MRadialVelocity > Convert
Measure conversion use (i.e.
virtual Bool setOffset(const Measure &in)
Set the offset in the reference (False if non-matching Measure)
virtual const String & getDefaultType() const
Get the default reference type.
static const String & showMe()
MRadialVelocity(const Measure *dt)
static MRadialVelocity fromDoppler(const Measure &dop, MRadialVelocity::Types typ)
For internal use only.
MDoppler toDoppler()
Make a Doppler velocity (as an MDoppler::BETA default) from the RadialVelocity.
MRadialVelocity(const Quantity &dt)
MRadialVelocity(const Quantity &dt, const MRadialVelocity::Ref &rf)
static void assure(const Measure &in)
virtual void checkTypes() const
Check if all internal tables of types (both enum and String) are complete and correct.
static void checkMyTypes()
MRadialVelocity(const MVRadialVelocity &dt)
Create from data and reference.
MCRadialVelocity MCType
Measure conversion routines for this class (i.e.
ScalarMeasColumn< MRadialVelocity > ScalarColumn
Measure table Columns (e.g., MRadialVelocity::ScalarColumn)
Types
Types of known MRadialVelocity Warning: The order defines the order in the translation matrix FromTo...
static MRadialVelocity::Types castType(uInt tp)
Translate reference code.
MeasRef< MRadialVelocity > Ref
Measure reference (i.e.
Quantity get(const Unit &un) const
Get radial velocity in specified units.
virtual Bool setRefString(const String &in)
Set the reference type to the specified String.
virtual String getRefString() const
Get the reference type (for records, including codes like R_)
Bool giveMe(MRadialVelocity::Ref &mr, const String &in)
MRadialVelocity()
Tip: In the following constructors and other functions, all MeasRef can be replaced with simple Measu...
static const String & showType(uInt tp)
static const String & showType(MRadialVelocity::Types tp)
virtual ~MRadialVelocity()
MVRadialVelocity MVType
Measure value container for this class (i.e.
virtual const String * allTypes(Int &nall, Int &nextra, const uInt *&typ) const
Get a list of all known reference codes.
MRadialVelocity(const MeasValue *dt)
MRadialVelocity(const MVRadialVelocity &dt, const MRadialVelocity::Ref &rf)
ArrayMeasColumn< MRadialVelocity > ArrayColumn
MRadialVelocity(const Quantity &dt, MRadialVelocity::Types rf)
virtual Measure * clone() const
Make a copy.
static const String * allMyTypes(Int &nall, Int &nextra, const uInt *&typ)
static MDoppler toDoppler(const Measure &in)
Local use only.
MRadialVelocity(const MVRadialVelocity &dt, MRadialVelocity::Types rf)
static MRadialVelocity fromDoppler(const MDoppler &dop, MRadialVelocity::Types typ)
static MRadialVelocity fromDoppler(const MDoppler &dop)
Make a RadialVelocity from the Doppler velocity (assuming LSRK default)
static Bool getType(MRadialVelocity::Types &tp, const String &in)
Translate string to reference code.
Types
Each derived class should have a Types enumeration, specifying the recognised frame types.
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.