casa
$Rev:20696$
|
A class to provide easy read-only access to new CalTable columns. More...
#include <CTColumns.h>
Public Member Functions | |
ROCTColumns (const NewCalTable &caltable) | |
Create a columns object that accesses the data in the specified MS. | |
~ROCTColumns () | |
The destructor does nothing special. | |
const ROCTObservationColumns & | observation () const |
Access to required subtables. | |
const ROCTAntennaColumns & | antenna () const |
const ROCTFieldColumns & | field () const |
const ROCTHistoryColumns & | history () const |
const ROCTSpWindowColumns & | spectralWindow () const |
Private Attributes | |
ROCTObservationColumns | observation_p |
Access to subtables. | |
ROCTAntennaColumns | antenna_p |
ROCTFieldColumns | field_p |
ROCTHistoryColumns | history_p |
ROCTSpWindowColumns | spectralWindow_p |
Friends | |
class | NewCalTable |
Access to optional subtables. |
A class to provide easy read-only access to new CalTable columns.
Public interface
ROCTColumns stands for Read-Only NewCalTable Table columns.
This class provides read-only access to the columns in the NewCalTable, similar to the ROMSColumns for MeasurementSet. 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.
// use as follows NewCalTable newcalt("mynewcalt"); RONCTColumns nctc(newcalt); // show time from row 5 cout << nctc.time()(5); // show name of antenna on row 3 in antenna table cout << nctc.antenna().name();
See CTColumns for the motivation.
Definition at line 92 of file CTColumns.h.
casa::ROCTColumns::ROCTColumns | ( | const NewCalTable & | caltable | ) |
Create a columns object that accesses the data in the specified MS.
The destructor does nothing special.
const ROCTAntennaColumns& casa::ROCTColumns::antenna | ( | ) | const [inline] |
Definition at line 104 of file CTColumns.h.
References antenna_p.
const ROCTFieldColumns& casa::ROCTColumns::field | ( | ) | const [inline] |
Definition at line 105 of file CTColumns.h.
References field_p.
const ROCTHistoryColumns& casa::ROCTColumns::history | ( | ) | const [inline] |
Definition at line 106 of file CTColumns.h.
References history_p.
const ROCTObservationColumns& casa::ROCTColumns::observation | ( | ) | const [inline] |
const ROCTSpWindowColumns& casa::ROCTColumns::spectralWindow | ( | ) | const [inline] |
Definition at line 107 of file CTColumns.h.
References spectralWindow_p.
friend class NewCalTable [friend] |
Definition at line 120 of file CTColumns.h.
Referenced by antenna().
ROCTFieldColumns casa::ROCTColumns::field_p [private] |
Definition at line 121 of file CTColumns.h.
Referenced by field().
Definition at line 122 of file CTColumns.h.
Referenced by history().
Definition at line 123 of file CTColumns.h.
Referenced by spectralWindow().