casa
$Rev:20696$
|
A class to provide easy read-write access to MSField columns. More...
#include <MSFieldColumns.h>
A class to provide easy read-write access to MSField columns.
Public interface
MSFieldColumns stands for MeasurementSet Field Table columns.
This class provides access to the columns in the MSField Table, it does the declaration of all the Scalar and ArrayColumns with the correct types, so the application programmer doesn't have to worry about getting those right. There is an access function for every predefined column. Access to non-predefined columns will still have to be done with explicit declarations. See MSColumns for an example.
See MSColumns for the motivation.
Definition at line 275 of file MSFieldColumns.h.
casa::MSFieldColumns::MSFieldColumns | ( | MSField & | msField | ) |
Construct from the supplied Table.
The desctructor does nothing special.
casa::MSFieldColumns::MSFieldColumns | ( | ) | [protected] |
casa::MSFieldColumns::MSFieldColumns | ( | const MSFieldColumns & | ) | [private] |
void casa::MSFieldColumns::attach | ( | MSField & | msField | ) | [protected] |
void casa::MSFieldColumns::attachOptionalCols | ( | MSField & | msField | ) | [private] |
ScalarColumn<String>& casa::MSFieldColumns::code | ( | ) | [inline] |
Read-write access to required columns.
Note that the direction measures with a stored polynomial have Col() added to their name. They are better accessed via the functions that have the same name, without the Col suffix, that will do the interpolation for you. These functions are in the ROMSFieldColumns class.
Definition at line 291 of file MSFieldColumns.h.
References code_p.
Referenced by code().
const ROScalarColumn<String>& casa::MSFieldColumns::code | ( | ) | const [inline] |
Read-only access to required columns.
Reimplemented from casa::ROMSFieldColumns.
Definition at line 317 of file MSFieldColumns.h.
References code().
ArrayColumn<Double>& casa::MSFieldColumns::delayDir | ( | ) | [inline] |
const ROArrayColumn<Double>& casa::MSFieldColumns::delayDir | ( | ) | const [inline] |
Reimplemented from casa::ROMSFieldColumns.
Definition at line 319 of file MSFieldColumns.h.
References delayDir().
ArrayMeasColumn<MDirection>& casa::MSFieldColumns::delayDirMeasCol | ( | ) | [inline] |
Definition at line 293 of file MSFieldColumns.h.
References delayDirMeas_p.
Referenced by delayDirMeasCol().
const ROArrayMeasColumn<MDirection>& casa::MSFieldColumns::delayDirMeasCol | ( | ) | const [inline] |
Reimplemented from casa::ROMSFieldColumns.
Definition at line 321 of file MSFieldColumns.h.
References delayDirMeasCol().
ScalarColumn<Int>& casa::MSFieldColumns::ephemerisId | ( | ) | [inline] |
Read-write access to optional columns.
Definition at line 312 of file MSFieldColumns.h.
References ephemerisId_p.
Referenced by ephemerisId().
const ROScalarColumn<Int>& casa::MSFieldColumns::ephemerisId | ( | ) | const [inline] |
Read-only access to optional columns.
Reimplemented from casa::ROMSFieldColumns.
Definition at line 349 of file MSFieldColumns.h.
References ephemerisId().
ScalarColumn<Bool>& casa::MSFieldColumns::flagRow | ( | ) | [inline] |
const ROScalarColumn<Bool>& casa::MSFieldColumns::flagRow | ( | ) | const [inline] |
Reimplemented from casa::ROMSFieldColumns.
Definition at line 323 of file MSFieldColumns.h.
References flagRow().
static MDirection casa::MSFieldColumns::interpolateDirMeas | ( | const Array< MDirection > & | arrDir, |
Int | numPoly, | ||
Double | interTime, | ||
Double | timeOrigin | ||
) | [static] |
Interpolate the direction Measure polynomial.
ScalarColumn<String>& casa::MSFieldColumns::name | ( | ) | [inline] |
const ROScalarColumn<String>& casa::MSFieldColumns::name | ( | ) | const [inline] |
Reimplemented from casa::ROMSFieldColumns.
Definition at line 325 of file MSFieldColumns.h.
References name().
ScalarColumn<Int>& casa::MSFieldColumns::numPoly | ( | ) | [inline] |
const ROScalarColumn<Int>& casa::MSFieldColumns::numPoly | ( | ) | const [inline] |
Reimplemented from casa::ROMSFieldColumns.
Definition at line 327 of file MSFieldColumns.h.
References numPoly().
MSFieldColumns& casa::MSFieldColumns::operator= | ( | const MSFieldColumns & | ) | [private] |
ArrayColumn<Double>& casa::MSFieldColumns::phaseDir | ( | ) | [inline] |
const ROArrayColumn<Double>& casa::MSFieldColumns::phaseDir | ( | ) | const [inline] |
Reimplemented from casa::ROMSFieldColumns.
Definition at line 329 of file MSFieldColumns.h.
References phaseDir().
ArrayMeasColumn<MDirection>& casa::MSFieldColumns::phaseDirMeasCol | ( | ) | [inline] |
Definition at line 299 of file MSFieldColumns.h.
References phaseDirMeas_p.
Referenced by phaseDirMeasCol().
const ROArrayMeasColumn<MDirection>& casa::MSFieldColumns::phaseDirMeasCol | ( | ) | const [inline] |
Reimplemented from casa::ROMSFieldColumns.
Definition at line 331 of file MSFieldColumns.h.
References phaseDirMeasCol().
ArrayColumn<Double>& casa::MSFieldColumns::referenceDir | ( | ) | [inline] |
Definition at line 301 of file MSFieldColumns.h.
References referenceDir_p.
Referenced by referenceDir().
const ROArrayColumn<Double>& casa::MSFieldColumns::referenceDir | ( | ) | const [inline] |
Reimplemented from casa::ROMSFieldColumns.
Definition at line 333 of file MSFieldColumns.h.
References referenceDir().
ArrayMeasColumn<MDirection>& casa::MSFieldColumns::referenceDirMeasCol | ( | ) | [inline] |
Definition at line 302 of file MSFieldColumns.h.
References referenceDirMeas_p.
Referenced by referenceDirMeasCol().
const ROArrayMeasColumn<MDirection>& casa::MSFieldColumns::referenceDirMeasCol | ( | ) | const [inline] |
Reimplemented from casa::ROMSFieldColumns.
Definition at line 335 of file MSFieldColumns.h.
References referenceDirMeasCol().
set the direction reference type for the REFERENCE_DIR, DELAY_DIR & PHASE_DIR columns.
This can only be done when the table has no rows. Trying to do so at other times will throw an exception.
void casa::MSFieldColumns::setEpochRef | ( | MEpoch::Types | ref, |
Bool | tableMustBeEmpty = True |
||
) |
set the epoch reference type for the TIME column.
Tip: In principle this function can only be used if the table is empty, otherwise already written values may thereafter have an incorrect reference, offset, or unit; However, it is possible that part of the table gets written before these values are known; In that case the reference, offset, or units can be set by using a False tableMustBeEmpty
argument;
ScalarColumn<Int>& casa::MSFieldColumns::sourceId | ( | ) | [inline] |
const ROScalarColumn<Int>& casa::MSFieldColumns::sourceId | ( | ) | const [inline] |
Reimplemented from casa::ROMSFieldColumns.
Definition at line 337 of file MSFieldColumns.h.
References sourceId().
ScalarColumn<Double>& casa::MSFieldColumns::time | ( | ) | [inline] |
const ROScalarColumn<Double>& casa::MSFieldColumns::time | ( | ) | const [inline] |
Reimplemented from casa::ROMSFieldColumns.
Definition at line 339 of file MSFieldColumns.h.
References time().
ScalarMeasColumn<MEpoch>& casa::MSFieldColumns::timeMeas | ( | ) | [inline] |
const ROScalarMeasColumn<MEpoch>& casa::MSFieldColumns::timeMeas | ( | ) | const [inline] |
Reimplemented from casa::ROMSFieldColumns.
Definition at line 343 of file MSFieldColumns.h.
References timeMeas().
ScalarQuantColumn<Double>& casa::MSFieldColumns::timeQuant | ( | ) | [inline] |
const ROScalarQuantColumn<Double>& casa::MSFieldColumns::timeQuant | ( | ) | const [inline] |
Reimplemented from casa::ROMSFieldColumns.
Definition at line 341 of file MSFieldColumns.h.
References timeQuant().
ScalarColumn<String> casa::MSFieldColumns::code_p [private] |
Reimplemented from casa::ROMSFieldColumns.
Definition at line 395 of file MSFieldColumns.h.
Referenced by code().
ArrayColumn<Double> casa::MSFieldColumns::delayDir_p [private] |
Reimplemented from casa::ROMSFieldColumns.
Definition at line 398 of file MSFieldColumns.h.
Referenced by delayDir().
Reimplemented from casa::ROMSFieldColumns.
Definition at line 408 of file MSFieldColumns.h.
Referenced by delayDirMeasCol().
ScalarColumn<Int> casa::MSFieldColumns::ephemerisId_p [private] |
Reimplemented from casa::ROMSFieldColumns.
Definition at line 404 of file MSFieldColumns.h.
Referenced by ephemerisId().
ScalarColumn<Bool> casa::MSFieldColumns::flagRow_p [private] |
Reimplemented from casa::ROMSFieldColumns.
Definition at line 402 of file MSFieldColumns.h.
Referenced by flagRow().
ScalarColumn<String> casa::MSFieldColumns::name_p [private] |
Reimplemented from casa::ROMSFieldColumns.
Definition at line 394 of file MSFieldColumns.h.
Referenced by name().
ScalarColumn<Int> casa::MSFieldColumns::numPoly_p [private] |
Reimplemented from casa::ROMSFieldColumns.
Definition at line 397 of file MSFieldColumns.h.
Referenced by numPoly().
ArrayColumn<Double> casa::MSFieldColumns::phaseDir_p [private] |
Reimplemented from casa::ROMSFieldColumns.
Definition at line 399 of file MSFieldColumns.h.
Referenced by phaseDir().
Reimplemented from casa::ROMSFieldColumns.
Definition at line 409 of file MSFieldColumns.h.
Referenced by phaseDirMeasCol().
Reimplemented from casa::ROMSFieldColumns.
Definition at line 400 of file MSFieldColumns.h.
Referenced by referenceDir().
Reimplemented from casa::ROMSFieldColumns.
Definition at line 410 of file MSFieldColumns.h.
Referenced by referenceDirMeasCol().
ScalarColumn<Int> casa::MSFieldColumns::sourceId_p [private] |
Reimplemented from casa::ROMSFieldColumns.
Definition at line 401 of file MSFieldColumns.h.
Referenced by sourceId().
ScalarColumn<Double> casa::MSFieldColumns::time_p [private] |
Reimplemented from casa::ROMSFieldColumns.
Definition at line 396 of file MSFieldColumns.h.
Referenced by time().
Reimplemented from casa::ROMSFieldColumns.
Definition at line 407 of file MSFieldColumns.h.
Referenced by timeMeas().
Reimplemented from casa::ROMSFieldColumns.
Definition at line 413 of file MSFieldColumns.h.
Referenced by timeQuant().