casa
$Rev:20696$
|
A class to provide easy read-write access to MSSource columns. More...
#include <MSSourceColumns.h>
A class to provide easy read-write access to MSSource columns.
Public interface
MSSourceColumns stands for MeasurementSet Source Table columns.
This class provides access to the columns in the MSSource 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 243 of file MSSourceColumns.h.
casa::MSSourceColumns::MSSourceColumns | ( | MSSource & | msSource | ) |
Construct from the supplied Table.
The destructor does nothing special.
casa::MSSourceColumns::MSSourceColumns | ( | ) | [protected] |
casa::MSSourceColumns::MSSourceColumns | ( | const MSSourceColumns & | ) | [private] |
void casa::MSSourceColumns::attach | ( | MSSource & | msSource | ) | [protected] |
void casa::MSSourceColumns::attachOptionalCols | ( | MSSource & | msSource | ) | [private] |
ScalarColumn<Int>& casa::MSSourceColumns::calibrationGroup | ( | ) | [inline] |
Read-write access to required columns.
Definition at line 254 of file MSSourceColumns.h.
References calibrationGroup_p.
Referenced by calibrationGroup().
const ROScalarColumn<Int>& casa::MSSourceColumns::calibrationGroup | ( | ) | const [inline] |
Read-only access to required columns.
Reimplemented from casa::ROMSSourceColumns.
Definition at line 291 of file MSSourceColumns.h.
References calibrationGroup().
ScalarColumn<String>& casa::MSSourceColumns::code | ( | ) | [inline] |
const ROScalarColumn<String>& casa::MSSourceColumns::code | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 293 of file MSSourceColumns.h.
References code().
ArrayColumn<Double>& casa::MSSourceColumns::direction | ( | ) | [inline] |
Definition at line 256 of file MSSourceColumns.h.
References direction_p.
Referenced by direction().
const ROArrayColumn<Double>& casa::MSSourceColumns::direction | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 295 of file MSSourceColumns.h.
References direction().
ScalarMeasColumn<MDirection>& casa::MSSourceColumns::directionMeas | ( | ) | [inline] |
Definition at line 258 of file MSSourceColumns.h.
References directionMeas_p.
Referenced by directionMeas().
const ROScalarMeasColumn<MDirection>& casa::MSSourceColumns::directionMeas | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 299 of file MSSourceColumns.h.
References directionMeas().
ArrayQuantColumn<Double>& casa::MSSourceColumns::directionQuant | ( | ) | [inline] |
Definition at line 257 of file MSSourceColumns.h.
References directionQuant_p.
Referenced by directionQuant().
const ROArrayQuantColumn<Double>& casa::MSSourceColumns::directionQuant | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 297 of file MSSourceColumns.h.
References directionQuant().
ScalarColumn<Double>& casa::MSSourceColumns::interval | ( | ) | [inline] |
const ROScalarColumn<Double>& casa::MSSourceColumns::interval | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 301 of file MSSourceColumns.h.
References interval().
ScalarQuantColumn<Double>& casa::MSSourceColumns::intervalQuant | ( | ) | [inline] |
Definition at line 260 of file MSSourceColumns.h.
References intervalQuant_p.
Referenced by intervalQuant().
const ROScalarQuantColumn<Double>& casa::MSSourceColumns::intervalQuant | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 303 of file MSSourceColumns.h.
References intervalQuant().
ScalarColumn<String>& casa::MSSourceColumns::name | ( | ) | [inline] |
const ROScalarColumn<String>& casa::MSSourceColumns::name | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 305 of file MSSourceColumns.h.
References name().
ScalarColumn<Int>& casa::MSSourceColumns::numLines | ( | ) | [inline] |
const ROScalarColumn<Int>& casa::MSSourceColumns::numLines | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 307 of file MSSourceColumns.h.
References numLines().
MSSourceColumns& casa::MSSourceColumns::operator= | ( | const MSSourceColumns & | ) | [private] |
ArrayColumn<Double>& casa::MSSourceColumns::position | ( | ) | [inline] |
Read-write access to optional columns.
Definition at line 274 of file MSSourceColumns.h.
References position_p.
Referenced by position().
const ROArrayColumn<Double>& casa::MSSourceColumns::position | ( | ) | const [inline] |
Read-only access to optional columns.
Reimplemented from casa::ROMSSourceColumns.
Definition at line 327 of file MSSourceColumns.h.
References position().
ScalarMeasColumn<MPosition>& casa::MSSourceColumns::positionMeas | ( | ) | [inline] |
Definition at line 276 of file MSSourceColumns.h.
References positionMeas_p.
Referenced by positionMeas().
const ROScalarMeasColumn<MPosition>& casa::MSSourceColumns::positionMeas | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 331 of file MSSourceColumns.h.
References positionMeas().
ArrayQuantColumn<Double>& casa::MSSourceColumns::positionQuant | ( | ) | [inline] |
Definition at line 275 of file MSSourceColumns.h.
References positionQuant_p.
Referenced by positionQuant().
const ROArrayQuantColumn<Double>& casa::MSSourceColumns::positionQuant | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 329 of file MSSourceColumns.h.
References positionQuant().
ArrayColumn<Double>& casa::MSSourceColumns::properMotion | ( | ) | [inline] |
Definition at line 263 of file MSSourceColumns.h.
References properMotion_p.
Referenced by properMotion().
const ROArrayColumn<Double>& casa::MSSourceColumns::properMotion | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 309 of file MSSourceColumns.h.
References properMotion().
ArrayQuantColumn<Double>& casa::MSSourceColumns::properMotionQuant | ( | ) | [inline] |
Definition at line 264 of file MSSourceColumns.h.
References properMotionQuant_p.
Referenced by properMotionQuant().
const ROArrayQuantColumn<Double>& casa::MSSourceColumns::properMotionQuant | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 311 of file MSSourceColumns.h.
References properMotionQuant().
ScalarColumn<Int>& casa::MSSourceColumns::pulsarId | ( | ) | [inline] |
const ROScalarColumn<Int>& casa::MSSourceColumns::pulsarId | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 333 of file MSSourceColumns.h.
References pulsarId().
ArrayColumn<Double>& casa::MSSourceColumns::restFrequency | ( | ) | [inline] |
Definition at line 278 of file MSSourceColumns.h.
References restFrequency_p.
Referenced by restFrequency().
const ROArrayColumn<Double>& casa::MSSourceColumns::restFrequency | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 335 of file MSSourceColumns.h.
References restFrequency().
ArrayMeasColumn<MFrequency>& casa::MSSourceColumns::restFrequencyMeas | ( | ) | [inline] |
Definition at line 280 of file MSSourceColumns.h.
References restFrequencyMeas_p.
Referenced by restFrequencyMeas().
const ROArrayMeasColumn<MFrequency>& casa::MSSourceColumns::restFrequencyMeas | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 339 of file MSSourceColumns.h.
References restFrequencyMeas().
ArrayQuantColumn<Double>& casa::MSSourceColumns::restFrequencyQuant | ( | ) | [inline] |
Definition at line 279 of file MSSourceColumns.h.
References restFrequencyQuant_p.
Referenced by restFrequencyQuant().
const ROArrayQuantColumn<Double>& casa::MSSourceColumns::restFrequencyQuant | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 337 of file MSSourceColumns.h.
References restFrequencyQuant().
set the direction type for the DIRECTION column.
This can only be done when the table has no rows. Trying to do so at other times will throw an exception.
void casa::MSSourceColumns::setEpochRef | ( | MEpoch::Types | ref, |
Bool | tableMustBeEmpty = True |
||
) |
set the epoch 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;
set the frequency type for the REST_FREQUENCY column.
Does nothing if this column is not defined. This can only be done when the table has no rows. Trying to do so at other times will throw an exception.
set the position type for the POSITION column.
This can only be done when the table has no rows. Trying to do so at other times will throw an exception.
set the radial velocity type for the SYSVEL column.
Does nothing if this column is not defined. This can only be done when the table has no rows. Trying to do so at other times will throw an exception.
ScalarColumn<Int>& casa::MSSourceColumns::sourceId | ( | ) | [inline] |
const ROScalarColumn<Int>& casa::MSSourceColumns::sourceId | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 313 of file MSSourceColumns.h.
References sourceId().
ScalarColumn<TableRecord>& casa::MSSourceColumns::sourceModel | ( | ) | [inline] |
Definition at line 282 of file MSSourceColumns.h.
References sourceModel_p.
Referenced by sourceModel().
const ROScalarColumn<TableRecord>& casa::MSSourceColumns::sourceModel | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 341 of file MSSourceColumns.h.
References sourceModel().
ScalarColumn<Int>& casa::MSSourceColumns::spectralWindowId | ( | ) | [inline] |
Definition at line 266 of file MSSourceColumns.h.
References spectralWindowId_p.
Referenced by spectralWindowId().
const ROScalarColumn<Int>& casa::MSSourceColumns::spectralWindowId | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 315 of file MSSourceColumns.h.
References spectralWindowId().
ArrayColumn<Double>& casa::MSSourceColumns::sysvel | ( | ) | [inline] |
const ROArrayColumn<Double>& casa::MSSourceColumns::sysvel | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 343 of file MSSourceColumns.h.
References sysvel().
ArrayMeasColumn<MRadialVelocity>& casa::MSSourceColumns::sysvelMeas | ( | ) | [inline] |
Definition at line 285 of file MSSourceColumns.h.
References sysvelMeas_p.
Referenced by sysvelMeas().
const ROArrayMeasColumn<MRadialVelocity>& casa::MSSourceColumns::sysvelMeas | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 347 of file MSSourceColumns.h.
References sysvelMeas().
ArrayQuantColumn<Double>& casa::MSSourceColumns::sysvelQuant | ( | ) | [inline] |
Definition at line 284 of file MSSourceColumns.h.
References sysvelQuant_p.
Referenced by sysvelQuant().
const ROArrayQuantColumn<Double>& casa::MSSourceColumns::sysvelQuant | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 345 of file MSSourceColumns.h.
References sysvelQuant().
ScalarColumn<Double>& casa::MSSourceColumns::time | ( | ) | [inline] |
const ROScalarColumn<Double>& casa::MSSourceColumns::time | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 317 of file MSSourceColumns.h.
References time().
ScalarMeasColumn<MEpoch>& casa::MSSourceColumns::timeMeas | ( | ) | [inline] |
const ROScalarMeasColumn<MEpoch>& casa::MSSourceColumns::timeMeas | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 321 of file MSSourceColumns.h.
References timeMeas().
ScalarQuantColumn<Double>& casa::MSSourceColumns::timeQuant | ( | ) | [inline] |
Definition at line 268 of file MSSourceColumns.h.
References timeQuant_p.
Referenced by timeQuant().
const ROScalarQuantColumn<Double>& casa::MSSourceColumns::timeQuant | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 319 of file MSSourceColumns.h.
References timeQuant().
ArrayColumn<String>& casa::MSSourceColumns::transition | ( | ) | [inline] |
Definition at line 286 of file MSSourceColumns.h.
References transition_p.
Referenced by transition().
const ROArrayColumn<String>& casa::MSSourceColumns::transition | ( | ) | const [inline] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 349 of file MSSourceColumns.h.
References transition().
Reimplemented from casa::ROMSSourceColumns.
Definition at line 402 of file MSSourceColumns.h.
Referenced by calibrationGroup().
ScalarColumn<String> casa::MSSourceColumns::code_p [private] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 403 of file MSSourceColumns.h.
Referenced by code().
ArrayColumn<Double> casa::MSSourceColumns::direction_p [private] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 404 of file MSSourceColumns.h.
Referenced by direction().
Reimplemented from casa::ROMSSourceColumns.
Definition at line 421 of file MSSourceColumns.h.
Referenced by directionMeas().
Reimplemented from casa::ROMSSourceColumns.
Definition at line 429 of file MSSourceColumns.h.
Referenced by directionQuant().
ScalarColumn<Double> casa::MSSourceColumns::interval_p [private] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 405 of file MSSourceColumns.h.
Referenced by interval().
Reimplemented from casa::ROMSSourceColumns.
Definition at line 430 of file MSSourceColumns.h.
Referenced by intervalQuant().
ScalarColumn<String> casa::MSSourceColumns::name_p [private] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 406 of file MSSourceColumns.h.
Referenced by name().
ScalarColumn<Int> casa::MSSourceColumns::numLines_p [private] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 407 of file MSSourceColumns.h.
Referenced by numLines().
ArrayColumn<Double> casa::MSSourceColumns::position_p [private] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 413 of file MSSourceColumns.h.
Referenced by position().
Reimplemented from casa::ROMSSourceColumns.
Definition at line 424 of file MSSourceColumns.h.
Referenced by positionMeas().
Reimplemented from casa::ROMSSourceColumns.
Definition at line 434 of file MSSourceColumns.h.
Referenced by positionQuant().
Reimplemented from casa::ROMSSourceColumns.
Definition at line 408 of file MSSourceColumns.h.
Referenced by properMotion().
Reimplemented from casa::ROMSSourceColumns.
Definition at line 431 of file MSSourceColumns.h.
Referenced by properMotionQuant().
ScalarColumn<Int> casa::MSSourceColumns::pulsarId_p [private] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 414 of file MSSourceColumns.h.
Referenced by pulsarId().
Reimplemented from casa::ROMSSourceColumns.
Definition at line 415 of file MSSourceColumns.h.
Referenced by restFrequency().
Reimplemented from casa::ROMSSourceColumns.
Definition at line 425 of file MSSourceColumns.h.
Referenced by restFrequencyMeas().
Reimplemented from casa::ROMSSourceColumns.
Definition at line 435 of file MSSourceColumns.h.
Referenced by restFrequencyQuant().
ScalarColumn<Int> casa::MSSourceColumns::sourceId_p [private] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 409 of file MSSourceColumns.h.
Referenced by sourceId().
Reimplemented from casa::ROMSSourceColumns.
Definition at line 416 of file MSSourceColumns.h.
Referenced by sourceModel().
Reimplemented from casa::ROMSSourceColumns.
Definition at line 410 of file MSSourceColumns.h.
Referenced by spectralWindowId().
ArrayColumn<Double> casa::MSSourceColumns::sysvel_p [private] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 417 of file MSSourceColumns.h.
Referenced by sysvel().
Reimplemented from casa::ROMSSourceColumns.
Definition at line 426 of file MSSourceColumns.h.
Referenced by sysvelMeas().
Reimplemented from casa::ROMSSourceColumns.
Definition at line 436 of file MSSourceColumns.h.
Referenced by sysvelQuant().
ScalarColumn<Double> casa::MSSourceColumns::time_p [private] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 411 of file MSSourceColumns.h.
Referenced by time().
Reimplemented from casa::ROMSSourceColumns.
Definition at line 422 of file MSSourceColumns.h.
Referenced by timeMeas().
Reimplemented from casa::ROMSSourceColumns.
Definition at line 432 of file MSSourceColumns.h.
Referenced by timeQuant().
ArrayColumn<String> casa::MSSourceColumns::transition_p [private] |
Reimplemented from casa::ROMSSourceColumns.
Definition at line 418 of file MSSourceColumns.h.
Referenced by transition().