casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
casa::ROMSMainColumns Class Reference

A class for easy read-only access to MeasurementSet main table columns. More...

#include <MSMainColumns.h>

Inheritance diagram for casa::ROMSMainColumns:
casa::MSMainColumns casa::ROMSColumns casa::MSColumns casa::MS2ASDM casa::MS2ASDM casa::MSConcat

List of all members.

Public Member Functions

 ROMSMainColumns (const MeasurementSet &ms)
 Create a columns object that accesses the data in the specified Table.
 ~ROMSMainColumns ()
 The desctructor does nothing special.
const ROScalarColumn< Int > & antenna1 () const
 Access to required columns.
const ROScalarColumn< Int > & antenna2 () const
const ROScalarColumn< Int > & arrayId () const
const ROScalarColumn< Int > & dataDescId () const
const ROScalarColumn< Double > & exposure () const
const ROScalarQuantColumn
< Double > & 
exposureQuant () const
const ROScalarColumn< Int > & feed1 () const
const ROScalarColumn< Int > & feed2 () const
const ROScalarColumn< Int > & fieldId () const
const ROArrayColumn< Bool > & flag () const
const ROArrayColumn< Bool > & flagCategory () const
const ROScalarColumn< Bool > & flagRow () const
const ROScalarColumn< Double > & interval () const
const ROScalarQuantColumn
< Double > & 
intervalQuant () const
const ROScalarColumn< Int > & observationId () const
const ROScalarColumn< Int > & processorId () const
const ROScalarColumn< Int > & scanNumber () const
const ROArrayColumn< Float > & sigma () const
const ROScalarColumn< Int > & stateId () const
const ROScalarColumn< Double > & time () const
const ROScalarQuantColumn
< Double > & 
timeQuant () const
const ROScalarMeasColumn
< MEpoch > & 
timeMeas () const
const ROScalarColumn< Double > & timeCentroid () const
const ROScalarQuantColumn
< Double > & 
timeCentroidQuant () const
const ROScalarMeasColumn
< MEpoch > & 
timeCentroidMeas () const
const ROArrayColumn< Double > & uvw () const
const ROArrayQuantColumn
< Double > & 
uvwQuant () const
const ROScalarMeasColumn< Muvw > & uvwMeas () const
const ROArrayColumn< Float > & weight () const
const ROScalarColumn< Int > & antenna3 () const
 Access to optional columns.
const ROScalarColumn< Bool > & baselineRef () const
const ROArrayColumn< Complex > & correctedData () const
const ROArrayColumn< Complex > & data () const
const ROScalarColumn< Int > & feed3 () const
const ROArrayColumn< Float > & floatData () const
const ROArrayColumn< Complex > & lagData () const
const ROArrayColumn< Complex > & modelData () const
const ROScalarColumn< Int > & phaseId () const
const ROScalarColumn< Int > & pulsarBin () const
const ROScalarColumn< Int > & pulsarGateId () const
const ROArrayColumn< Float > & sigmaSpectrum () const
const ROScalarColumn< Double > & timeExtraPrec () const
const ROScalarQuantColumn
< Double > & 
timeExtraPrecQuant () const
const ROArrayColumn< Double > & uvw2 () const
const ROScalarMeasColumn< Muvw > & uvw2Meas () const
const ROArrayQuantColumn
< Double > & 
uvw2Quant () const
const ROArrayColumn< Complex > & videoPoint () const
const ROArrayColumn< Float > & weightSpectrum () const
uInt nrow () const
 Convenience function that returns the number of rows in any of the columns.
Vector< StringflagCategories () const
 Returns the category labels for the FLAG_CATEGORY column.

Protected Member Functions

 ROMSMainColumns ()
void attach (const MeasurementSet &ms)

Private Member Functions

 ROMSMainColumns (const ROMSMainColumns &)
ROMSMainColumnsoperator= (const ROMSMainColumns &)
void attachOptionalCols (const MeasurementSet &ms)

Private Attributes

ROScalarColumn< Intantenna1_p
ROScalarColumn< Intantenna2_p
ROScalarColumn< IntarrayId_p
ROScalarColumn< IntdataDescId_p
ROScalarColumn< Doubleexposure_p
ROScalarColumn< Intfeed1_p
ROScalarColumn< Intfeed2_p
ROScalarColumn< IntfieldId_p
ROArrayColumn< Boolflag_p
ROArrayColumn< BoolflagCategory_p
ROScalarColumn< BoolflagRow_p
ROScalarColumn< Doubleinterval_p
ROScalarColumn< IntobservationId_p
ROScalarColumn< IntprocessorId_p
ROScalarColumn< IntscanNumber_p
ROArrayColumn< Floatsigma_p
ROScalarColumn< IntstateId_p
ROScalarColumn< Doubletime_p
ROScalarColumn< DoubletimeCentroid_p
ROArrayColumn< Doubleuvw_p
ROArrayColumn< Floatweight_p
ROScalarColumn< Intantenna3_p
ROScalarColumn< BoolbaselineRef_p
ROArrayColumn< Complex > data_p
ROScalarColumn< Intfeed3_p
ROArrayColumn< FloatfloatData_p
ROArrayColumn< Complex > lagData_p
ROScalarColumn< IntphaseId_p
ROScalarColumn< IntpulsarBin_p
ROScalarColumn< IntpulsarGateId_p
ROArrayColumn< FloatsigmaSpectrum_p
ROScalarColumn< DoubletimeExtraPrec_p
ROArrayColumn< Doubleuvw2_p
ROArrayColumn< Complex > videoPoint_p
ROArrayColumn< FloatweightSpectrum_p
ROArrayColumn< Complex > correctedData_p
ROArrayColumn< Complex > modelData_p
ROScalarMeasColumn< MEpochtimeMeas_p
ROScalarMeasColumn< MEpochtimeCentroidMeas_p
ROScalarMeasColumn< MuvwuvwMeas_p
ROScalarMeasColumn< Muvwuvw2Meas_p
ROScalarQuantColumn< DoubleexposureQuant_p
ROScalarQuantColumn< DoubleintervalQuant_p
ROScalarQuantColumn< DoubletimeQuant_p
ROScalarQuantColumn< DoubletimeCentroidQuant_p
ROArrayQuantColumn< DoubleuvwQuant_p
ROScalarQuantColumn< DoubletimeExtraPrecQuant_p
ROArrayQuantColumn< Doubleuvw2Quant_p

Detailed Description

A class for easy read-only access to MeasurementSet main table columns.

Intended use:

Public interface

Review Status

Reviewed By:
Bob Garwood
Date Reviewed:
1997/02/01

Prerequisite

Etymology

ROMSColumns stands for Read-Only MeasurementSet Table columns.

Synopsis

This class provides read-only access to the columns in the 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.
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;

Example

    // use as follows
    MeasurementSet ms("myMS"); 
    ROMSColumns msc(ms);
    // show data from row 5
    cout << msc.data()(5);
    // show name of antenna on row 3 in antenna table
    cout << msc.antenna().name();

Motivation

See MSColumns for the motivation.

To Do

Definition at line 101 of file MSMainColumns.h.


Constructor & Destructor Documentation

Create a columns object that accesses the data in the specified Table.

The desctructor does nothing special.


Member Function Documentation

Access to required columns.

Reimplemented in casa::MSMainColumns.

Definition at line 112 of file MSMainColumns.h.

References antenna1_p.

Reimplemented in casa::MSMainColumns.

Definition at line 113 of file MSMainColumns.h.

References antenna2_p.

Access to optional columns.

Reimplemented in casa::MSMainColumns.

Definition at line 153 of file MSMainColumns.h.

References antenna3_p.

Reimplemented in casa::MSMainColumns.

Definition at line 114 of file MSMainColumns.h.

References arrayId_p.

void casa::ROMSMainColumns::attach ( const MeasurementSet ms) [protected]

Reimplemented in casa::MSMainColumns.

Definition at line 154 of file MSMainColumns.h.

References baselineRef_p.

const ROArrayColumn<Complex>& casa::ROMSMainColumns::correctedData ( ) const [inline]

Reimplemented in casa::MSMainColumns.

Definition at line 155 of file MSMainColumns.h.

References correctedData_p.

const ROArrayColumn<Complex>& casa::ROMSMainColumns::data ( ) const [inline]

Reimplemented in casa::MSMainColumns.

Definition at line 156 of file MSMainColumns.h.

References data_p.

Reimplemented in casa::MSMainColumns.

Definition at line 115 of file MSMainColumns.h.

References dataDescId_p.

Reimplemented in casa::MSMainColumns.

Definition at line 116 of file MSMainColumns.h.

References exposure_p.

Reimplemented in casa::MSMainColumns.

Definition at line 117 of file MSMainColumns.h.

References exposureQuant_p.

Referenced by casa::MSMainColInterface::exposureQuant().

const ROScalarColumn<Int>& casa::ROMSMainColumns::feed1 ( ) const [inline]

Reimplemented in casa::MSMainColumns.

Definition at line 119 of file MSMainColumns.h.

References feed1_p.

const ROScalarColumn<Int>& casa::ROMSMainColumns::feed2 ( ) const [inline]

Reimplemented in casa::MSMainColumns.

Definition at line 120 of file MSMainColumns.h.

References feed2_p.

const ROScalarColumn<Int>& casa::ROMSMainColumns::feed3 ( ) const [inline]

Reimplemented in casa::MSMainColumns.

Definition at line 157 of file MSMainColumns.h.

References feed3_p.

Reimplemented in casa::MSMainColumns.

Definition at line 121 of file MSMainColumns.h.

References fieldId_p.

const ROArrayColumn<Bool>& casa::ROMSMainColumns::flag ( ) const [inline]

Reimplemented in casa::MSMainColumns.

Definition at line 122 of file MSMainColumns.h.

References flag_p.

Referenced by casa::MSMainColInterface::flag().

Returns the category labels for the FLAG_CATEGORY column.

Reimplemented in casa::MSMainColumns.

Definition at line 123 of file MSMainColumns.h.

References flagCategory_p.

Reimplemented in casa::MSMainColumns.

Definition at line 124 of file MSMainColumns.h.

References flagRow_p.

Referenced by casa::MSMainColInterface::flagRow().

Reimplemented in casa::MSMainColumns.

Definition at line 158 of file MSMainColumns.h.

References floatData_p.

Reimplemented in casa::MSMainColumns.

Definition at line 125 of file MSMainColumns.h.

References interval_p.

Reimplemented in casa::MSMainColumns.

Definition at line 126 of file MSMainColumns.h.

References intervalQuant_p.

Referenced by casa::MS2ASDM::timestampEndSecs(), and casa::MS2ASDM::timestampStartSecs().

const ROArrayColumn<Complex>& casa::ROMSMainColumns::lagData ( ) const [inline]

Reimplemented in casa::MSMainColumns.

Definition at line 159 of file MSMainColumns.h.

References lagData_p.

const ROArrayColumn<Complex>& casa::ROMSMainColumns::modelData ( ) const [inline]

Reimplemented in casa::MSMainColumns.

Definition at line 160 of file MSMainColumns.h.

References modelData_p.

uInt casa::ROMSMainColumns::nrow ( ) const [inline]

Convenience function that returns the number of rows in any of the columns.

Definition at line 178 of file MSMainColumns.h.

References antenna1_p.

Reimplemented in casa::MSMainColumns.

Definition at line 128 of file MSMainColumns.h.

References observationId_p.

ROMSMainColumns& casa::ROMSMainColumns::operator= ( const ROMSMainColumns ) [private]

Reimplemented in casa::MSMainColumns.

Definition at line 161 of file MSMainColumns.h.

References phaseId_p.

Reimplemented in casa::MSMainColumns.

Definition at line 129 of file MSMainColumns.h.

References processorId_p.

Reimplemented in casa::MSMainColumns.

Definition at line 162 of file MSMainColumns.h.

References pulsarBin_p.

Reimplemented in casa::MSMainColumns.

Definition at line 163 of file MSMainColumns.h.

References pulsarGateId_p.

Reimplemented in casa::MSMainColumns.

Definition at line 130 of file MSMainColumns.h.

References scanNumber_p.

const ROArrayColumn<Float>& casa::ROMSMainColumns::sigma ( ) const [inline]

Reimplemented in casa::MSMainColumns.

Definition at line 131 of file MSMainColumns.h.

References sigma_p.

Reimplemented in casa::MSMainColumns.

Definition at line 164 of file MSMainColumns.h.

References sigmaSpectrum_p.

Reimplemented in casa::MSMainColumns.

Definition at line 132 of file MSMainColumns.h.

References stateId_p.

Reimplemented in casa::MSMainColumns.

Definition at line 133 of file MSMainColumns.h.

References time_p.

Reimplemented in casa::MSMainColumns.

Definition at line 138 of file MSMainColumns.h.

References timeCentroid_p.

Reimplemented in casa::MSMainColumns.

Definition at line 141 of file MSMainColumns.h.

References timeCentroidMeas_p.

Reimplemented in casa::MSMainColumns.

Definition at line 139 of file MSMainColumns.h.

References timeCentroidQuant_p.

Reimplemented in casa::MSMainColumns.

Definition at line 165 of file MSMainColumns.h.

References timeExtraPrec_p.

Reimplemented in casa::MSMainColumns.

Definition at line 166 of file MSMainColumns.h.

References timeExtraPrecQuant_p.

Reimplemented in casa::MSMainColumns.

Definition at line 136 of file MSMainColumns.h.

References timeMeas_p.

const ROArrayColumn<Double>& casa::ROMSMainColumns::uvw ( ) const [inline]

Reimplemented in casa::MSMainColumns.

Definition at line 143 of file MSMainColumns.h.

References uvw_p.

const ROArrayColumn<Double>& casa::ROMSMainColumns::uvw2 ( ) const [inline]

Reimplemented in casa::MSMainColumns.

Definition at line 168 of file MSMainColumns.h.

References uvw2_p.

Reimplemented in casa::MSMainColumns.

Definition at line 169 of file MSMainColumns.h.

References uvw2Meas_p.

Reimplemented in casa::MSMainColumns.

Definition at line 171 of file MSMainColumns.h.

References uvw2Quant_p.

Reimplemented in casa::MSMainColumns.

Definition at line 146 of file MSMainColumns.h.

References uvwMeas_p.

Reimplemented in casa::MSMainColumns.

Definition at line 144 of file MSMainColumns.h.

References uvwQuant_p.

const ROArrayColumn<Complex>& casa::ROMSMainColumns::videoPoint ( ) const [inline]

Reimplemented in casa::MSMainColumns.

Definition at line 173 of file MSMainColumns.h.

References videoPoint_p.

Reimplemented in casa::MSMainColumns.

Definition at line 148 of file MSMainColumns.h.

References weight_p.

Reimplemented in casa::MSMainColumns.

Definition at line 174 of file MSMainColumns.h.

References weightSpectrum_p.


Member Data Documentation

Reimplemented in casa::MSMainColumns.

Definition at line 201 of file MSMainColumns.h.

Referenced by antenna1(), and nrow().

Reimplemented in casa::MSMainColumns.

Definition at line 202 of file MSMainColumns.h.

Referenced by antenna2().

Reimplemented in casa::MSMainColumns.

Definition at line 223 of file MSMainColumns.h.

Referenced by antenna3().

Reimplemented in casa::MSMainColumns.

Definition at line 203 of file MSMainColumns.h.

Referenced by arrayId().

Reimplemented in casa::MSMainColumns.

Definition at line 224 of file MSMainColumns.h.

Referenced by baselineRef().

Reimplemented in casa::MSMainColumns.

Definition at line 239 of file MSMainColumns.h.

Referenced by correctedData().

Reimplemented in casa::MSMainColumns.

Definition at line 225 of file MSMainColumns.h.

Referenced by data().

Reimplemented in casa::MSMainColumns.

Definition at line 204 of file MSMainColumns.h.

Referenced by dataDescId().

Reimplemented in casa::MSMainColumns.

Definition at line 205 of file MSMainColumns.h.

Referenced by exposure().

Reimplemented in casa::MSMainColumns.

Definition at line 250 of file MSMainColumns.h.

Referenced by exposureQuant().

Reimplemented in casa::MSMainColumns.

Definition at line 206 of file MSMainColumns.h.

Referenced by feed1().

Reimplemented in casa::MSMainColumns.

Definition at line 207 of file MSMainColumns.h.

Referenced by feed2().

Reimplemented in casa::MSMainColumns.

Definition at line 226 of file MSMainColumns.h.

Referenced by feed3().

Reimplemented in casa::MSMainColumns.

Definition at line 208 of file MSMainColumns.h.

Referenced by fieldId().

Reimplemented in casa::MSMainColumns.

Definition at line 209 of file MSMainColumns.h.

Referenced by flag().

Reimplemented in casa::MSMainColumns.

Definition at line 210 of file MSMainColumns.h.

Referenced by flagCategory().

Reimplemented in casa::MSMainColumns.

Definition at line 211 of file MSMainColumns.h.

Referenced by flagRow().

Reimplemented in casa::MSMainColumns.

Definition at line 227 of file MSMainColumns.h.

Referenced by floatData().

Reimplemented in casa::MSMainColumns.

Definition at line 212 of file MSMainColumns.h.

Referenced by interval().

Reimplemented in casa::MSMainColumns.

Definition at line 251 of file MSMainColumns.h.

Referenced by intervalQuant().

Reimplemented in casa::MSMainColumns.

Definition at line 228 of file MSMainColumns.h.

Referenced by lagData().

Reimplemented in casa::MSMainColumns.

Definition at line 240 of file MSMainColumns.h.

Referenced by modelData().

Reimplemented in casa::MSMainColumns.

Definition at line 213 of file MSMainColumns.h.

Referenced by observationId().

Reimplemented in casa::MSMainColumns.

Definition at line 229 of file MSMainColumns.h.

Referenced by phaseId().

Reimplemented in casa::MSMainColumns.

Definition at line 214 of file MSMainColumns.h.

Referenced by processorId().

Reimplemented in casa::MSMainColumns.

Definition at line 230 of file MSMainColumns.h.

Referenced by pulsarBin().

Reimplemented in casa::MSMainColumns.

Definition at line 231 of file MSMainColumns.h.

Referenced by pulsarGateId().

Reimplemented in casa::MSMainColumns.

Definition at line 215 of file MSMainColumns.h.

Referenced by scanNumber().

Reimplemented in casa::MSMainColumns.

Definition at line 216 of file MSMainColumns.h.

Referenced by sigma().

Reimplemented in casa::MSMainColumns.

Definition at line 232 of file MSMainColumns.h.

Referenced by sigmaSpectrum().

Reimplemented in casa::MSMainColumns.

Definition at line 217 of file MSMainColumns.h.

Referenced by stateId().

Reimplemented in casa::MSMainColumns.

Definition at line 218 of file MSMainColumns.h.

Referenced by time().

Reimplemented in casa::MSMainColumns.

Definition at line 219 of file MSMainColumns.h.

Referenced by timeCentroid().

Reimplemented in casa::MSMainColumns.

Definition at line 244 of file MSMainColumns.h.

Referenced by timeCentroidMeas().

Reimplemented in casa::MSMainColumns.

Definition at line 253 of file MSMainColumns.h.

Referenced by timeCentroidQuant().

Reimplemented in casa::MSMainColumns.

Definition at line 233 of file MSMainColumns.h.

Referenced by timeExtraPrec().

Reimplemented in casa::MSMainColumns.

Definition at line 256 of file MSMainColumns.h.

Referenced by timeExtraPrecQuant().

Reimplemented in casa::MSMainColumns.

Definition at line 243 of file MSMainColumns.h.

Referenced by timeMeas().

Reimplemented in casa::MSMainColumns.

Definition at line 252 of file MSMainColumns.h.

Referenced by timeQuant().

Reimplemented in casa::MSMainColumns.

Definition at line 234 of file MSMainColumns.h.

Referenced by uvw2().

Reimplemented in casa::MSMainColumns.

Definition at line 247 of file MSMainColumns.h.

Referenced by uvw2Meas().

Reimplemented in casa::MSMainColumns.

Definition at line 257 of file MSMainColumns.h.

Referenced by uvw2Quant().

Reimplemented in casa::MSMainColumns.

Definition at line 220 of file MSMainColumns.h.

Referenced by uvw().

Reimplemented in casa::MSMainColumns.

Definition at line 245 of file MSMainColumns.h.

Referenced by uvwMeas().

Reimplemented in casa::MSMainColumns.

Definition at line 254 of file MSMainColumns.h.

Referenced by uvwQuant().

Reimplemented in casa::MSMainColumns.

Definition at line 235 of file MSMainColumns.h.

Referenced by videoPoint().

Reimplemented in casa::MSMainColumns.

Definition at line 221 of file MSMainColumns.h.

Referenced by weight().

Reimplemented in casa::MSMainColumns.

Definition at line 236 of file MSMainColumns.h.

Referenced by weightSpectrum().


The documentation for this class was generated from the following file: