Go to the documentation of this file.
29 #ifndef MEASURES_MEPOCH_H
30 #define MEASURES_MEPOCH_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/MVEpoch.h>
221 const uInt *&typ)
const;
Types
Each derived class should have a Types enumeration, specifying the recognised frame types.
virtual Bool setRefString(const String &in)
Set the reference type to the specified String.
@ LMST
Local Mean Sidereal Time.
MEpoch(const Quantity &dt)
static Bool getType(MEpoch::Types &tp, const String &in)
Translate string to reference code.
MEpoch(const MVEpoch &dt)
Create from data and reference.
MEpoch(const MeasValue *dt)
virtual Measure * clone() const
Create copy.
virtual const String & tellMe() const
Tell me your type.
ScalarMeasColumn< MEpoch > ScalarColumn
Measure table Columns (e.g., MEpoch::ScalarColumn)
MeasConvert< MEpoch > Convert
Measure Convert (i.e.
@ N_Types
Number of types.
Bool giveMe(MEpoch::Ref &mr, const String &in)
MEpoch(const Measure *dt)
MEpoch(const MVEpoch &dt, const MEpoch::Ref &rf)
MCEpoch MCType
Measure conversion routines for this class (i.e.
virtual Bool setOffset(const Measure &in)
Set the offset in the reference (False if non-matching Measure)
virtual uInt type() const
Get the type (== Register() of derived Measure (faster than Strings) All should have: static uInt myT...
Types
Types of known MEpochs Caution: The order defines the order in the translation matrix in the MCEpoch...
virtual const String * allTypes(Int &nall, Int &nextra, const uInt *&typ) const
Get a list of all known reference codes.
MEpoch()
Tip: In the following constructors and other functions, all MeasRef can be replaced with simple Measu...
@ RAZE
Reduce result to integer days.
static const String & showType(uInt tp)
ArrayMeasColumn< MEpoch > ArrayColumn
this file contains all the compiler specific defines
MEpoch(const Quantity &dt, const MEpoch::Ref &rf)
virtual String getRefString() const
Get the reference type (for records, including codes like R_)
MVEpoch MVType
Measure value container for this class (i.e.
@ GAST
Greenwich Apparent ST.
static const String & showType(MEpoch::Types tp)
MeasRef< MEpoch > Ref
Measure reference (i.e.
static uInt myType()
Get my type (as Register)
static MEpoch::Types castType(uInt tp)
Translate reference code.
String: the storage and methods of handling collections of characters.
MEpoch(const Quantity &dt, MEpoch::Types rf)
bool Bool
Define the standard types used by Casacore.
static const String * allMyTypes(Int &nall, Int &nextra, const uInt *&typ)
static void checkMyTypes()
@ LAST
Local Apparent Sidereal Time.
static const String & showMe()
MEpoch(const MVEpoch &dt, MEpoch::Types rf)
static void assure(const Measure &in)
@ GMST1
Greenwich Mean ST1.
virtual const String & getDefaultType() const
Get the default reference type.
virtual void checkTypes() const
Check if all internal tables of types (both enum and String) are complete and correct.
Quantity get(const Unit &inunit) const
Get time in specified units.