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>
220 const uInt *&typ)
const;
virtual Bool setRefString(const String &in)
Set the reference type to the specified String.
virtual Measure * clone() const
Create copy.
MEpoch(const MVEpoch &dt)
Create from data and reference.
ArrayMeasColumn< MEpoch > ArrayColumn
MEpoch(const Measure *dt)
static const String & showMe()
static void checkMyTypes()
Bool giveMe(MEpoch::Ref &mr, const String &in)
virtual const String & tellMe() const
Tell me your type.
Types
Types of known MEpochs Caution: The order defines the order in the translation matrix in the MCEpoch...
@ LMST
Local Mean Sidereal Time.
@ RAZE
Reduce result to integer days.
@ GAST
Greenwich Apparent ST.
@ N_Types
Number of types.
@ GMST1
Greenwich Mean ST1.
@ LAST
Local Apparent Sidereal Time.
static const String & showType(MEpoch::Types tp)
MEpoch(const Quantity &dt, MEpoch::Types rf)
Quantity get(const Unit &inunit) const
Get time in specified units.
virtual const String & getDefaultType() const
Get the default reference type.
MEpoch(const Quantity &dt)
static const String * allMyTypes(Int &nall, Int &nextra, const uInt *&typ)
MeasRef< MEpoch > Ref
Measure reference (i.e.
MEpoch(const MeasValue *dt)
static MEpoch::Types castType(uInt tp)
Translate reference code.
MeasConvert< MEpoch > Convert
Measure Convert (i.e.
MEpoch()
Tip: In the following constructors and other functions, all MeasRef can be replaced with simple Measu...
virtual void checkTypes() const
Check if all internal tables of types (both enum and String) are complete and correct.
static const String & showType(uInt tp)
static void assure(const Measure &in)
virtual const String * allTypes(Int &nall, Int &nextra, const uInt *&typ) const
Get a list of all known reference codes.
ScalarMeasColumn< MEpoch > ScalarColumn
Measure table Columns (e.g., MEpoch::ScalarColumn)
MEpoch(const Quantity &dt, const MEpoch::Ref &rf)
static Bool getType(MEpoch::Types &tp, const String &in)
Translate string to reference code.
virtual Bool setOffset(const Measure &in)
Set the offset in the reference (False if non-matching Measure)
virtual String getRefString() const
Get the reference type (for records, including codes like R_)
MVEpoch MVType
Measure value container for this class (i.e.
MEpoch(const MVEpoch &dt, const MEpoch::Ref &rf)
MCEpoch MCType
Measure conversion routines for this class (i.e.
MEpoch(const MVEpoch &dt, MEpoch::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.