MCEpoch.h

Classes

MCEpoch -- MEpoch conversion routines (full description)

class MCEpoch : public MCBase

Types

enum Routes

LAST_GAST
GAST_LAST
LMST_GMST1
GMST1_LMST
GMST1_UT1
UT1_GMST1
GAST_UT1
UT1_GAST
UT1_UTC
UTC_UT1
UT1_UT2
UT2_UT1
UTC_TAI
TAI_UTC
TAI_TDT
TDT_TAI
TDT_TDB
TDB_TDT
TDT_TCG
TCG_TDT
TDB_TCB
TCB_TDB
N_Routes
RAZING

Interface

Public Members
MCEpoch()
~MCEpoch()
static String showState()
Private Members
MCEpoch(const MCEpoch &other)
MCEpoch &operator=(const MCEpoch &other)
virtual void getConvert(MConvertBase &mc, const MRBase &inref, const MRBase &outref)
virtual void initConvert(uInt which, MConvertBase &mc)
virtual void clearConvert()
virtual void doConvert(MeasValue &in, MRBase &inref, MRBase &outref, const MConvertBase &mc)
void doConvert(MVEpoch &in, MRBase &inref, MRBase &outref, const MConvertBase &mc)

Description

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25
Programs:
Tests:

Prerequisite

Etymology

Measure, Convert and Epoch

Synopsis

Contains state machinery and caching for actual conversions

Example

Convert (with all steps explicit) a UTC to an IAT time.
	#include <measures/Measures.h>
	#include <measures/Measures/MEpoch.h>
	cout << "TAI for UTC = MJD(50237.29): " <<
		MEpoch::Convert(MEpoch(MVEpoch(Quantity(50237.29, "d")),
			               MEpoch::Ref(MEpoch::UTC)),
		                MEpoch::Ref(MEpoch::TAI))() <<
		endl;

Motivation

To Do

Member Description

MCEpoch()

Default constructor

~MCEpoch()

static String showState()

Show the state of the conversion engine (mainly for debugging purposes)

enum Routes

The list of actual routines provided.
Warning Each AA_BB in the list points to routine that can be used in the FromTo list in the getConvert routine. In addition the type to which each is converted should be in the ToRef array, again in the proper order.

MCEpoch(const MCEpoch &other)

Copy constructor (not implemented)

MCEpoch &operator=(const MCEpoch &other)

Assignment (not implemented)

virtual void getConvert(MConvertBase &mc, const MRBase &inref, const MRBase &outref)

Create conversion function pointer

virtual void initConvert(uInt which, MConvertBase &mc)

Create help structures for Measure conversion routines

virtual void clearConvert()

Delete the pointers used in the MeasConvert help structure cache

virtual void doConvert(MeasValue &in, MRBase &inref, MRBase &outref, const MConvertBase &mc)

Routine to convert time from one reference frame to another

void doConvert(MVEpoch &in, MRBase &inref, MRBase &outref, const MConvertBase &mc)

Conversion routine to cater for inheritance question