casacore
|
#include <MSDopplerColumns.h>
Public Member Functions | |
MSDopplerColumns (const MSDoppler &msDoppler) | |
Create a columns object that accesses the data in the specified Table. | |
~MSDopplerColumns () | |
The destructor does nothing special. | |
Bool | isNull () const |
Is this object defined? (MSDoppler table is optional) | |
ScalarColumn< Int > & | dopplerId () |
Access to required columns. | |
ScalarColumn< Int > & | sourceId () |
ScalarColumn< Int > & | transitionId () |
ScalarColumn< Double > & | velDef () |
ScalarQuantColumn< Double > & | velDefQuant () |
ScalarMeasColumn< MDoppler > & | velDefMeas () |
const ScalarColumn< Int > & | dopplerId () const |
Const access to required columns. | |
const ScalarColumn< Int > & | sourceId () const |
const ScalarColumn< Int > & | transitionId () const |
const ScalarColumn< Double > & | velDef () const |
const ScalarQuantColumn< Double > & | velDefQuant () const |
const ScalarMeasColumn< MDoppler > & | velDefMeas () const |
rownr_t | nrow () const |
Convenience function that returns the number of rows in any of the columns. | |
void | setVelDefRef (MDoppler::Types ref) |
set the DOPPLER type for the VELDEF column. | |
Protected Member Functions | |
MSDopplerColumns () | |
void | attach (const MSDoppler &msDoppler) |
Private Member Functions | |
MSDopplerColumns (const MSDopplerColumns &) | |
MSDopplerColumns & | operator= (const MSDopplerColumns &) |
Private Attributes | |
Bool | isNull_p |
ScalarColumn< Int > | dopplerId_p |
ScalarColumn< Int > | sourceId_p |
ScalarColumn< Int > | transitionId_p |
ScalarColumn< Double > | velDef_p |
ScalarMeasColumn< MDoppler > | velDefMeas_p |
ScalarQuantColumn< Double > | velDefQuant_p |
A class to provide easy access to MSDoppler columns
Public interface
MSDopplerColumns stands for MeasurementSet Doppler Table columns.
This class provides access to the columns in the MSDoppler 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 72 of file MSDopplerColumns.h.
casacore::MSDopplerColumns::MSDopplerColumns | ( | const MSDoppler & | msDoppler | ) |
Create a columns object that accesses the data in the specified Table.
casacore::MSDopplerColumns::~MSDopplerColumns | ( | ) |
The destructor does nothing special.
|
protected |
|
private |
|
protected |
|
inline |
Access to required columns.
Definition at line 86 of file MSDopplerColumns.h.
References dopplerId_p.
|
inline |
Const access to required columns.
Definition at line 96 of file MSDopplerColumns.h.
References dopplerId_p.
|
inline |
Is this object defined? (MSDoppler table is optional)
Definition at line 82 of file MSDopplerColumns.h.
References isNull_p.
Referenced by nrow().
|
inline |
Convenience function that returns the number of rows in any of the columns.
Returns zero if the object is null.
Definition at line 106 of file MSDopplerColumns.h.
References dopplerId_p, isNull(), and casacore::TableColumn::nrow().
|
private |
void casacore::MSDopplerColumns::setVelDefRef | ( | MDoppler::Types | ref | ) |
set the DOPPLER type for the VELDEF column.
|
inline |
Definition at line 87 of file MSDopplerColumns.h.
References sourceId_p.
|
inline |
Definition at line 97 of file MSDopplerColumns.h.
References sourceId_p.
|
inline |
Definition at line 88 of file MSDopplerColumns.h.
References transitionId_p.
|
inline |
Definition at line 98 of file MSDopplerColumns.h.
References transitionId_p.
|
inline |
Definition at line 89 of file MSDopplerColumns.h.
References velDef_p.
|
inline |
Definition at line 99 of file MSDopplerColumns.h.
References velDef_p.
|
inline |
Definition at line 91 of file MSDopplerColumns.h.
References velDefMeas_p.
|
inline |
Definition at line 101 of file MSDopplerColumns.h.
References velDefMeas_p.
|
inline |
Definition at line 90 of file MSDopplerColumns.h.
References velDefQuant_p.
|
inline |
Definition at line 100 of file MSDopplerColumns.h.
References velDefQuant_p.
|
private |
Definition at line 129 of file MSDopplerColumns.h.
Referenced by dopplerId(), dopplerId(), and nrow().
|
private |
Definition at line 126 of file MSDopplerColumns.h.
Referenced by isNull().
|
private |
Definition at line 130 of file MSDopplerColumns.h.
Referenced by sourceId(), and sourceId().
|
private |
Definition at line 131 of file MSDopplerColumns.h.
Referenced by transitionId(), and transitionId().
|
private |
Definition at line 132 of file MSDopplerColumns.h.
|
private |
Definition at line 135 of file MSDopplerColumns.h.
Referenced by velDefMeas(), and velDefMeas().
|
private |
Definition at line 138 of file MSDopplerColumns.h.
Referenced by velDefQuant(), and velDefQuant().