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> 43 template <
class M>
class MeasConvert;
44 template <
class M>
class ArrayMeasColumn;
45 template <
class M>
class ScalarMeasColumn;
79 class MPosition :
public MeasBase<MVPosition, MeasRef<MPosition> > {
124 MPosition(const
MVPosition &dt, const MPosition::Ref &rf);
125 MPosition(const
MVPosition &dt, MPosition::Types rf);
128 const MPosition::Ref &rf);
130 MPosition::Types rf);
133 const MPosition::Ref &rf);
135 MPosition::Types rf);
141 MPosition(const MPosition &);
142 MPosition &operator=(const MPosition &);
146 virtual ~MPosition();
154 static const
String &showMe();
188 const
uInt *&typ) const;
200 static
void checkMyTypes();
205 static
uInt myType();
MeasRef< MPosition > Ref
Measure reference (i.e.
A 1-D Specialization of the Array class.
Quantum< Vector< Double > > getAngle() const
virtual Bool setRefString(const String &in)
Set the reference type to the specified String.
static const String & showType(MPosition::Types tp)
ScalarMeasColumn< MPosition > ScalarColumn
Measure table Columns (e.g., MPosition::ScalarColumn)
virtual Bool setOffset(const Measure &in)
Set the offset in the reference (False if non-matching Measure)
virtual Measure * clone() const
Make copy.
Bool giveMe(MPosition::Ref &mr, const String &in)
static MPosition::Types castType(uInt tp)
Translate reference code.
virtual uInt type() const
Get the type (== Register() of derived Measure (faster than Strings) All should have: static uInt myT...
Physical quantities within reference frame.
static void assure(const Measure &in)
Base class for all measures.
Read only access to table array Measure columns.
virtual const String & getDefaultType() const
Get the default reference type.
static const String * allMyTypes(Int &nall, Int &nextra, const uInt *&typ)
MCPosition MCType
Measure conversion routines for this class (i.e.
virtual const String & tellMe() const
Tell me your type.
Base class for values in a Measure.
MVPosition MVType
Measure value container for this class (i.e.
virtual void checkTypes() const
Check if all internal tables of types (both enum and String) are complete and correct.
static Bool getType(MPosition::Types &tp, const String &in)
Translate string to reference code.
bool Bool
Define the standard types used by Casacore.
MPosition conversion routines.
typedef WHATEVER_SUN_TYPEDEF(MPosition) Types Types
Reference enum Types (included originally for gcc 2.95)
Quantum< Vector< Double > > get(const Unit &inunit) const
Get Measure data.
ArrayMeasColumn< MPosition > ArrayColumn
MeasConvert< MPosition > Convert
Measure Convert (i.e.
virtual String getRefString() const
Get the reference type (for records, including codes like R_)
String: the storage and methods of handling collections of characters.
Read only access to table scalar Measure columns.
virtual const String * allTypes(Int &nall, Int &nextra, const uInt *&typ) const
Get a list of all known reference codes.
this file contains all the compiler specific defines