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> 43 template <
class M>
class MeasConvert;
44 template <
class M>
class ArrayMeasColumn;
45 template <
class M>
class ScalarMeasColumn;
104 class MEpoch :
public MeasBase<MVEpoch, MeasRef<MEpoch> > {
174 MEpoch(const
MVEpoch &dt, const MEpoch::Ref &rf);
175 MEpoch(const
MVEpoch &dt, MEpoch::Types rf);
177 MEpoch(const
Quantity &dt, const MEpoch::Ref &rf);
178 MEpoch(const
Quantity &dt, MEpoch::Types rf);
192 static const
String &showMe();
223 const
uInt *&typ) const;
235 static
void checkMyTypes();
240 static
uInt myType();
virtual const String & tellMe() const
Tell me your type.
Local Mean Sidereal Time.
Bool giveMe(MEpoch::Ref &mr, const String &in)
virtual uInt type() const
Get the type (== Register() of derived Measure (faster than Strings) All should have: static uInt myT...
virtual const String & getDefaultType() const
Get the default reference type.
Local Apparent Sidereal Time.
virtual const String * allTypes(Int &nall, Int &nextra, const uInt *&typ) const
Get a list of all known reference codes.
Physical quantities within reference frame.
Base class for all measures.
Read only access to table array Measure columns.
static const String * allMyTypes(Int &nall, Int &nextra, const uInt *&typ)
static MEpoch::Types castType(uInt tp)
Translate reference code.
MeasConvert< MEpoch > Convert
Measure Convert (i.e.
static void assure(const Measure &in)
Base class for values in a Measure.
ScalarMeasColumn< MEpoch > ScalarColumn
Measure table Columns (e.g., MEpoch::ScalarColumn)
virtual void checkTypes() const
Check if all internal tables of types (both enum and String) are complete and correct.
MeasRef< MEpoch > Ref
Measure reference (i.e.
MVEpoch MVType
Measure value container for this class (i.e.
static const String & showType(MEpoch::Types tp)
Reduce result to integer days.
Quantity get(const Unit &inunit) const
Get time in specified units.
virtual Bool setOffset(const Measure &in)
Set the offset in the reference (False if non-matching Measure)
bool Bool
Define the standard types used by Casacore.
static Bool getType(MEpoch::Types &tp, const String &in)
Translate string to reference code.
virtual Measure * clone() const
Create copy.
A class for high precision time.
typedef WHATEVER_SUN_TYPEDEF(MEpoch) Types Types
Reference enum Types (included originally for gcc 2.95)
String: the storage and methods of handling collections of characters.
MEpoch conversion routines.
Read only access to table scalar Measure columns.
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_)
ArrayMeasColumn< MEpoch > ArrayColumn
this file contains all the compiler specific defines
MCEpoch MCType
Measure conversion routines for this class (i.e.