casa
$Rev:20696$
|
#include <MSValidIds.h>
Public Member Functions | |
MSValidIds () | |
Construct one unattached to a MeasurementSet. | |
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. | |
Int | antenna1 (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. | |
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 |
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 |
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 |
the dopplerId comes from the SPECTRAL_WINDOW subtable so spectralWindowId must first be valid in order for this to also be valid. | |
Int | sourceId (uInt rownr) const |
The sourceId comes from the FIELD subtable so fieldId must first be valid in order for this to also be valid. | |
Private Member Functions | |
void | clear () |
Int | checkResult (Int testResult, const Table &mstable) const |
Bool | checkRow (uInt rownr) const |
Private Attributes | |
MeasurementSet | ms_p |
ROMSColumns * | romsCols_p |
Bool | hasDoppler_p |
Bool | hasSource_p |
Public interface
<h3>Review Status</h3><dl><dt>Date Reviewed:<dd>yyyy/mm/dd</dl>
Definition at line 69 of file MSValidIds.h.
Construct one unattached to a MeasurementSet.
All functions return -1. Use the attach function to attach this to a MeasurementSet after construction.
casa::MSValidIds::MSValidIds | ( | const MeasurementSet & | ms | ) |
Construct one attached to the indicated MeasurementSet.
casa::MSValidIds::MSValidIds | ( | const MSValidIds & | other | ) |
Construct one from another.
The destructor.
Int casa::MSValidIds::antenna1 | ( | 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.
Int casa::MSValidIds::antenna2 | ( | uInt | rownr | ) | const |
void casa::MSValidIds::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 casa::MSValidIds::checkResult | ( | Int | testResult, |
const Table & | mstable | ||
) | const [inline, private] |
Definition at line 131 of file MSValidIds.h.
References casa::Table::nrow().
Bool casa::MSValidIds::checkRow | ( | uInt | rownr | ) | const [inline, private] |
Definition at line 134 of file MSValidIds.h.
References ms_p, and casa::Table::nrow().
void casa::MSValidIds::clear | ( | ) | [private] |
Int casa::MSValidIds::dataDescId | ( | uInt | rownr | ) | const |
Int casa::MSValidIds::dopplerId | ( | uInt | rownr | ) | const |
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 casa::MSValidIds::fieldId | ( | uInt | rownr | ) | const |
Int casa::MSValidIds::observationId | ( | uInt | rownr | ) | const |
MSValidIds& casa::MSValidIds::operator= | ( | const MSValidIds & | other | ) |
Assignment operator, reference semantics.
Int casa::MSValidIds::polarizationId | ( | uInt | rownr | ) | const |
The polarizationId comes from the DATA_DESCRIPTION subtable, so dataDescId must first be valid in order for this to also be valid.
Int casa::MSValidIds::processorId | ( | uInt | rownr | ) | const |
Int casa::MSValidIds::sourceId | ( | uInt | rownr | ) | const |
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 casa::MSValidIds::spectralWindowId | ( | uInt | rownr | ) | const |
The spectralWindowId comes from the DATA_DESCRIPTION subtable, so dataDescId must first be valid in order for this to also be valid.
Int casa::MSValidIds::stateId | ( | uInt | rownr | ) | const |
Bool casa::MSValidIds::hasDoppler_p [private] |
Definition at line 128 of file MSValidIds.h.
Bool casa::MSValidIds::hasSource_p [private] |
Definition at line 128 of file MSValidIds.h.
MeasurementSet casa::MSValidIds::ms_p [private] |
Definition at line 125 of file MSValidIds.h.
Referenced by checkRow().
ROMSColumns* casa::MSValidIds::romsCols_p [private] |
Definition at line 126 of file MSValidIds.h.