MCPosition.h

Classes

MCPosition -- MPosition conversion routines (full description)

class MCPosition : public MCBase

Types

enum Routes

ITRF_WGS84
WGS84_ITRF
N_Routes

Interface

Public Members
MCPosition()
~MCPosition()
static String showState()
Private Members
MCPosition(const MCPosition &other)
MCPosition &operator=(const MCPosition &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(MVPosition &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 Position

Synopsis

Contains state machinery and caching for actual conversions

Example

See Measure for conversion example.

Motivation

To Do

Member Description

MCPosition()

Default constructor

~MCPosition()

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.

MCPosition(const MCPosition &other)

Copy constructor (not implemented)

MCPosition &operator=(const MCPosition &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 do actual conversion

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

Conversion routine to cater for inheritance question