casa
5.7.0-16
|
A class to provide easy read-only access to MSDataDesc columns. More...
#include <MSDataDescColumns.h>
Public Member Functions | |
ROMSDataDescColumns (const MSDataDescription &msDataDesc) | |
Create a columns object that accesses the data in the specified Table. More... | |
~ROMSDataDescColumns () | |
The destructor does nothing special. More... | |
const ROScalarColumn< Bool > & | flagRow () const |
Access to required columns. More... | |
const ROScalarColumn< Int > & | polarizationId () const |
const ROScalarColumn< Int > & | spectralWindowId () const |
const ROScalarColumn< Int > & | lagId () const |
Access to optional columns. More... | |
uInt | nrow () const |
Convenience function that returns the number of rows in any of the columns. More... | |
Int | match (uInt spwId, uInt polId, Int tryRow=-1) |
returns the last row that contains the specified entries in the SPECTRAL_WINDOW_ID & POLARIZATION_ID columns. More... | |
Protected Member Functions | |
ROMSDataDescColumns () | |
void | attach (const MSDataDescription &msDataDesc) |
Private Member Functions | |
ROMSDataDescColumns (const ROMSDataDescColumns &) | |
ROMSDataDescColumns & | operator= (const ROMSDataDescColumns &) |
void | attachOptionalCols (const MSDataDescription &msDataDesc) |
Private Attributes | |
ROScalarColumn< Bool > | flagRow_p |
ROScalarColumn< Int > | polarizationId_p |
ROScalarColumn< Int > | spectralWindowId_p |
ROScalarColumn< Int > | lagId_p |
A class to provide easy read-only access to MSDataDesc columns.
Public interface
ROMSDataDescColumns stands for Read-Only MeasurementSet DataDesc Table columns.
This class provides read-only 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 ROMSColumns 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::ROMSDataDescColumns::ROMSDataDescColumns | ( | const MSDataDescription & | msDataDesc | ) |
Create a columns object that accesses the data in the specified Table.
casacore::ROMSDataDescColumns::~ROMSDataDescColumns | ( | ) |
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.
Referenced by casacore::MSDataDescColumns::flagRow().
|
inline |
Access to optional columns.
Definition at line 93 of file MSDataDescColumns.h.
References lagId_p.
Referenced by casacore::MSDataDescColumns::lagId().
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 97 of file MSDataDescColumns.h.
References flagRow_p.
|
private |
|
inline |
Definition at line 86 of file MSDataDescColumns.h.
References polarizationId_p.
Referenced by casacore::MSDataDescColumns::polarizationId().
|
inline |
Definition at line 87 of file MSDataDescColumns.h.
References spectralWindowId_p.
Referenced by casacore::MSDataDescColumns::spectralWindowId().
|
private |
Definition at line 125 of file MSDataDescColumns.h.
|
private |
Definition at line 129 of file MSDataDescColumns.h.
Referenced by lagId().
|
private |
Definition at line 126 of file MSDataDescColumns.h.
Referenced by polarizationId().
|
private |
Definition at line 127 of file MSDataDescColumns.h.
Referenced by spectralWindowId().