MSValidIds.h

Classes

MSValidIds -- (full description)

class MSValidIds

Interface

Public Members
MSValidIds()
MSValidIds(const MeasurementSet &ms)
MSValidIds(const MSValidIds &other)
~MSValidIds()
MSValidIds &operator=(const MSValidIds &other)
void attach(const MeasurementSet &ms)
Int antenna1(uInt rownr) const
Int antenna2(uInt rownr) const
Int dataDescId(uInt rownr) const
Int fieldId(uInt rownr) const
Int observationId(uInt rownr) const
Int processorId(uInt rownr) const
Int stateId(uInt rownr) const
Int polarizationId(uInt rownr) const
Int spectralWindowId(uInt rownr) const
Int dopplerId(uInt rownr) const
Int sourceId(uInt rownr) const
Private Members
void clear()
Int checkResult(Int testResult, const Table &mstable) const
Bool checkRow(uInt rownr) const

Description

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

Synopsis

Example

Motivation

Thrown Exceptions

Member Description

MSValidIds()

Construct one unattached to a MeasurementSet. All functions return -1. Use the attach function to attach this to a MeasurementSet after construction.

MSValidIds(const MeasurementSet &ms)

Construct one attached to the indicated MeasurementSet

MSValidIds(const MSValidIds &other)

Construct one from another

~MSValidIds()

The destructor

MSValidIds &operator=(const MSValidIds &other)

Assignment operator, reference semantics.

void attach(const MeasurementSet &ms)

Attach this one to a MeasurementSet. This can also be used to re-attach to the same MeasurementSet when additional optional subtables have been added since this object was constructed.

Int polarizationId(uInt rownr) const

These functions check on the validity of the appropriate value in the main table or sub-tables in the case of some Ids. The actual value stored is returned unless the sub-table does not exist (for optional subtables) or the indicated row number does not exist in that sub-table where appropriate.

The polarizationId comes from the DATA_DESCRIPTION subtable, so dataDescId must first be valid in order for this to also be valid.

Int spectralWindowId(uInt rownr) const

These functions check on the validity of the appropriate value in the main table or sub-tables in the case of some Ids. The actual value stored is returned unless the sub-table does not exist (for optional subtables) or the indicated row number does not exist in that sub-table where appropriate.

The spectralWindowId comes from the DATA_DESCRIPTION subtable, so dataDescId must first be valid in order for this to also be valid.

Int dopplerId(uInt rownr) const

These functions check on the validity of the appropriate value in the main table or sub-tables in the case of some Ids. The actual value stored is returned unless the sub-table does not exist (for optional subtables) or the indicated row number does not exist in that sub-table where appropriate.

the dopplerId comes from the SPECTRAL_WINDOW subtable so spectralWindowId must first be valid in order for this to also be valid. Since the DOPPLER subtable is not simply indexed by DOPPLER_ID, the DOPPLER subtable exists and a dopplerId can be found in the SPECTRAL_WINDOW subtable, that value will be returned, whatever it is.

Int sourceId(uInt rownr) const

These functions check on the validity of the appropriate value in the main table or sub-tables in the case of some Ids. The actual value stored is returned unless the sub-table does not exist (for optional subtables) or the indicated row number does not exist in that sub-table where appropriate.

The sourceId comes from the FIELD subtable so fieldId must first be valid in order for this to also be valid. Since the SOURCE table is also indexed by TIME, the only additional check is that a SOURCE table must exist in order for this to be valid.

Int antenna1(uInt rownr) const
Int antenna2(uInt rownr) const
Int dataDescId(uInt rownr) const
Int fieldId(uInt rownr) const
Int observationId(uInt rownr) const
Int processorId(uInt rownr) const
Int stateId(uInt rownr) const

These functions check on the validity of the appropriate value in the main table or sub-tables in the case of some Ids. The actual value stored is returned unless the sub-table does not exist (for optional subtables) or the indicated row number does not exist in that sub-table where appropriate.

void clear()

Int checkResult(Int testResult, const Table &mstable) const

Bool checkRow(uInt rownr) const