casacore
|
#include <MSDataDescColumns.h>
Public Member Functions | |
MSDataDescColumns (const MSDataDescription &msDataDesc) | |
Create a columns object that accesses the data in the specified Table. More... | |
~MSDataDescColumns () | |
The destructor does nothing special. More... | |
ScalarColumn< Bool > & | flagRow () |
Access to required columns. More... | |
ScalarColumn< Int > & | polarizationId () |
ScalarColumn< Int > & | spectralWindowId () |
const ScalarColumn< Bool > & | flagRow () const |
Const access to required columns. More... | |
const ScalarColumn< Int > & | polarizationId () const |
const ScalarColumn< Int > & | spectralWindowId () const |
ScalarColumn< Int > & | lagId () |
Access to optional columns. More... | |
const ScalarColumn< Int > & | lagId () const |
Const access to optional columns. More... | |
rownr_t | nrow () const |
Convenience function that returns the number of rows in any of the columns. More... | |
Int64 | match (uInt spwId, uInt polId, Int64 tryRow=-1) |
returns the last row that contains the specified entries in the SPECTRAL_WINDOW_ID & POLARIZATION_ID columns. More... | |
Protected Member Functions | |
MSDataDescColumns () | |
void | attach (const MSDataDescription &msDataDesc) |
Private Member Functions | |
MSDataDescColumns (const MSDataDescColumns &) | |
MSDataDescColumns & | operator= (const MSDataDescColumns &) |
void | attachOptionalCols (const MSDataDescription &msDataDesc) |
Private Attributes | |
ScalarColumn< Bool > | flagRow_p |
ScalarColumn< Int > | polarizationId_p |
ScalarColumn< Int > | spectralWindowId_p |
ScalarColumn< Int > | lagId_p |
A class to provide easy access to MSDataDescription columns
Public interface
MSDataDescColumns stands for MeasurementSet DataDescription Table columns.
This class provides access to the columns in the MSDataDesc 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.
Warning: The Table that is used to construct this class must not be destroyed (or go out of scope) before this class does; Otherwise the scalar and array columns use by this class will be left dangling;
See MSColumns for the motivation.
Definition at line 74 of file MSDataDescColumns.h.
casacore::MSDataDescColumns::MSDataDescColumns | ( | const MSDataDescription & | msDataDesc | ) |
Create a columns object that accesses the data in the specified Table.
casacore::MSDataDescColumns::~MSDataDescColumns | ( | ) |
The destructor does nothing special.
|
protected |
|
private |
|
protected |
|
private |
|
inline |
Access to required columns.
Definition at line 85 of file MSDataDescColumns.h.
References flagRow_p.
|
inline |
Const access to required columns.
Definition at line 92 of file MSDataDescColumns.h.
References flagRow_p.
|
inline |
|
inline |
Const access to optional columns.
Definition at line 104 of file MSDataDescColumns.h.
References lagId_p.
returns the last row that contains the specified entries in the SPECTRAL_WINDOW_ID & POLARIZATION_ID columns.
Returns -1 if no match could be found. Flagged rows can never match. If tryRow is non-negative, then that row is tested to see if it matches before any others are tested. Setting tryRow to a positive value greater than the table length will throw an exception (AipsError).
|
inline |
Convenience function that returns the number of rows in any of the columns.
Definition at line 108 of file MSDataDescColumns.h.
References flagRow_p, and casacore::TableColumn::nrow().
|
private |
|
inline |
Definition at line 86 of file MSDataDescColumns.h.
References polarizationId_p.
|
inline |
Definition at line 93 of file MSDataDescColumns.h.
References polarizationId_p.
|
inline |
Definition at line 87 of file MSDataDescColumns.h.
References spectralWindowId_p.
|
inline |
Definition at line 94 of file MSDataDescColumns.h.
References spectralWindowId_p.
|
private |
Definition at line 136 of file MSDataDescColumns.h.
|
private |
Definition at line 140 of file MSDataDescColumns.h.
Referenced by lagId().
|
private |
Definition at line 137 of file MSDataDescColumns.h.
Referenced by polarizationId().
|
private |
Definition at line 138 of file MSDataDescColumns.h.
Referenced by spectralWindowId().