29 #ifndef MEASURES_MPOSITION_H
30 #define MEASURES_MPOSITION_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/MVPosition.h>
185 const uInt *&typ)
const;
MPosition()
Tip: In the following constructors and other functions, all MeasRef can be replaced with simple Measu...
virtual const String & tellMe() const
Tell me your type.
static Bool getType(MPosition::Types &tp, const String &in)
Translate string to reference code.
MPosition(const Quantity &dt0, const Quantum< Vector< Double > > &dt, const MPosition::Ref &rf)
static MPosition::Types getType(const String &in)
this one throws an exception for an unrecognized String
static void assure(const Measure &in)
Types
Types of known MPositions Warning: The order defines the order in the translation matrix FromTo in t...
ArrayMeasColumn< MPosition > ArrayColumn
MPosition(const MVPosition &dt)
Create from data and reference.
Bool giveMe(MPosition::Ref &mr, const String &in)
MPosition(const MPosition &)
static void checkMyTypes()
MPosition(const MeasValue *dt)
MCPosition MCType
Measure conversion routines for this class (i.e.
virtual const String & getDefaultType() const
Get the default reference type.
Quantum< Vector< Double > > getAngle(const Unit &inunit) const
MPosition(const Quantity &dt0, const Quantum< Vector< Double > > &dt)
virtual String getRefString() const
Get the reference type (for records, including codes like R_)
MeasConvert< MPosition > Convert
Measure Convert (i.e.
Quantum< Vector< Double > > getAngle() const
static const String * allMyTypes(Int &nall, Int &nextra, const uInt *&typ)
static MPosition::Types castType(uInt tp)
Translate reference code.
MPosition & operator=(const MPosition &)
virtual void checkTypes() const
Check if all internal tables of types (both enum and String) are complete and correct.
MeasRef< MPosition > Ref
Measure reference (i.e.
MPosition(const Quantity &dt0, const Quantum< Vector< Double > > &dt, MPosition::Types rf)
MVPosition MVType
Measure value container for this class (i.e.
virtual Bool setOffset(const Measure &in)
Set the offset in the reference (False if non-matching Measure)
ScalarMeasColumn< MPosition > ScalarColumn
Measure table Columns (e.g., MPosition::ScalarColumn)
virtual Bool setRefString(const String &in)
Set the reference type to the specified String.
MPosition(const Quantity &dt, const Quantity &dt1, const Quantity &dt2)
MPosition(const MVPosition &dt, const MPosition::Ref &rf)
Quantum< Vector< Double > > get(const Unit &inunit) const
Get Measure data.
static const String & showMe()
MPosition(const Quantity &dt, const Quantity &dt1, const Quantity &dt2, MPosition::Types rf)
static const String & showType(MPosition::Types tp)
static const String & showType(uInt tp)
virtual const String * allTypes(Int &nall, Int &nextra, const uInt *&typ) const
Get a list of all known reference codes.
virtual Measure * clone() const
Make copy.
MPosition(const Measure *dt)
MPosition(const Quantity &dt, const Quantity &dt1, const Quantity &dt2, const MPosition::Ref &rf)
MPosition(const MVPosition &dt, MPosition::Types rf)
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.