casa
5.7.0-16
|
A class to provide easy read-write access to MSDataDescription columns. More...
#include <MSDataDescColumns.h>
Public Member Functions | |
MSDataDescColumns (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 () |
Read-write access to required columns. More... | |
ScalarColumn< Int > & | polarizationId () |
ScalarColumn< Int > & | spectralWindowId () |
ScalarColumn< Int > & | lagId () |
read-write access to optional columns More... | |
const ROScalarColumn< Bool > & | flagRow () const |
Read-only access to required columns. More... | |
const ROScalarColumn< Int > & | polarizationId () const |
const ROScalarColumn< Int > & | spectralWindowId () const |
const ROScalarColumn< Int > & | lagId () const |
Read-only access to optional columns. More... | |
Public Member Functions inherited from casacore::ROMSDataDescColumns | |
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 | |
MSDataDescColumns () | |
void | attach (MSDataDescription &msDataDesc) |
Protected Member Functions inherited from casacore::ROMSDataDescColumns | |
ROMSDataDescColumns () | |
void | attach (const MSDataDescription &msDataDesc) |
Private Member Functions | |
MSDataDescColumns (const MSDataDescColumns &) | |
MSDataDescColumns & | operator= (const MSDataDescColumns &) |
void | attachOptionalCols (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 read-write 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 168 of file MSDataDescColumns.h.
casacore::MSDataDescColumns::MSDataDescColumns | ( | 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 |
Read-write access to required columns.
Definition at line 179 of file MSDataDescColumns.h.
References flagRow_p.
|
inline |
Read-only access to required columns.
Definition at line 191 of file MSDataDescColumns.h.
References casacore::ROMSDataDescColumns::flagRow().
|
inline |
read-write access to optional columns
Definition at line 186 of file MSDataDescColumns.h.
References lagId_p.
|
inline |
Read-only access to optional columns.
Definition at line 201 of file MSDataDescColumns.h.
References casacore::ROMSDataDescColumns::lagId().
|
private |
|
inline |
Definition at line 180 of file MSDataDescColumns.h.
References polarizationId_p.
|
inline |
Definition at line 193 of file MSDataDescColumns.h.
References casacore::ROMSDataDescColumns::polarizationId().
|
inline |
Definition at line 181 of file MSDataDescColumns.h.
References spectralWindowId_p.
|
inline |
Definition at line 195 of file MSDataDescColumns.h.
References casacore::ROMSDataDescColumns::spectralWindowId().
|
private |
Definition at line 223 of file MSDataDescColumns.h.
Referenced by flagRow().
|
private |
Definition at line 227 of file MSDataDescColumns.h.
Referenced by lagId().
|
private |
Definition at line 224 of file MSDataDescColumns.h.
Referenced by polarizationId().
|
private |
Definition at line 225 of file MSDataDescColumns.h.
Referenced by spectralWindowId().