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::MSFeedColumns Class Reference

A class to provide easy read-write access to MSFeed columns. More...

#include <MSFeedColumns.h>

Inheritance diagram for casa::MSFeedColumns:
casa::ROMSFeedColumns

List of all members.

Public Member Functions

 MSFeedColumns (MSFeed &msFeed)
 Create a columns object that accesses the data in the specified Table.
 ~MSFeedColumns ()
 The desctructor does nothing special.
ScalarColumn< Int > & antennaId ()
 Read-write access to required columns.
ScalarColumn< Int > & beamId ()
ArrayColumn< Double > & beamOffset ()
ArrayQuantColumn< Double > & beamOffsetQuant ()
ArrayMeasColumn< MDirection > & beamOffsetMeas ()
ScalarColumn< Int > & feedId ()
ScalarColumn< Double > & interval ()
ScalarQuantColumn< Double > & intervalQuant ()
ScalarColumn< Int > & numReceptors ()
ArrayColumn< Complex > & polResponse ()
ArrayColumn< String > & polarizationType ()
ArrayColumn< Double > & position ()
ArrayQuantColumn< Double > & positionQuant ()
ScalarMeasColumn< MPosition > & positionMeas ()
ArrayColumn< Double > & receptorAngle ()
ArrayQuantColumn< Double > & receptorAngleQuant ()
ScalarColumn< Int > & spectralWindowId ()
ScalarColumn< Double > & time ()
ScalarQuantColumn< Double > & timeQuant ()
ScalarMeasColumn< MEpoch > & timeMeas ()
ScalarColumn< Double > & focusLength ()
 Read-write access to optional columns.
ScalarQuantColumn< Double > & focusLengthQuant ()
ScalarColumn< Int > & phasedFeedId ()
const ROScalarColumn< Int > & antennaId () const
 Read-only access to required columns.
const ROScalarColumn< Int > & beamId () const
const ROArrayColumn< Double > & beamOffset () const
const ROArrayQuantColumn
< Double > & 
beamOffsetQuant () const
const ROArrayMeasColumn
< MDirection > & 
beamOffsetMeas () const
const ROScalarColumn< Int > & feedId () const
const ROScalarColumn< Double > & interval () const
const ROScalarQuantColumn
< Double > & 
intervalQuant () const
const ROScalarColumn< Int > & numReceptors () const
const ROArrayColumn< Complex > & polResponse () const
const ROArrayColumn< String > & polarizationType () const
const ROArrayColumn< Double > & position () const
const ROArrayQuantColumn
< Double > & 
positionQuant () const
const ROScalarMeasColumn
< MPosition > & 
positionMeas () const
const ROArrayColumn< Double > & receptorAngle () const
const ROArrayQuantColumn
< Double > & 
receptorAngleQuant () const
const ROScalarColumn< Int > & spectralWindowId () const
const ROScalarColumn< Double > & time () const
const ROScalarQuantColumn
< Double > & 
timeQuant () const
const ROScalarMeasColumn
< MEpoch > & 
timeMeas () const
const ROScalarColumn< Double > & focusLength () const
 Read-only access to optional columns.
const ROScalarQuantColumn
< Double > & 
focusLengthQuant () const
const ROScalarColumn< Int > & phasedFeedId () const
void setEpochRef (MEpoch::Types ref, Bool tableMustBeEmpty=True)
 set the epoch type for the TIME column.
void setDirectionRef (MDirection::Types ref)
 set the direction type for the BEAM_OFFSET column.
void setPositionRef (MPosition::Types ref)
 set the position type for the POSITION column.

Protected Member Functions

 MSFeedColumns ()
void attach (MSFeed &msFeed)

Private Member Functions

 MSFeedColumns (const MSFeedColumns &)
MSFeedColumnsoperator= (const MSFeedColumns &)
void attachOptionalCols (MSFeed &msFeed)

Private Attributes

ScalarColumn< IntantennaId_p
ScalarColumn< IntbeamId_p
ArrayColumn< DoublebeamOffset_p
ScalarColumn< IntfeedId_p
ScalarColumn< Doubleinterval_p
ScalarColumn< IntnumReceptors_p
ArrayColumn< Complex > polResponse_p
ArrayColumn< StringpolarizationType_p
ArrayColumn< Doubleposition_p
ArrayColumn< DoublereceptorAngle_p
ScalarColumn< IntspectralWindowId_p
ScalarColumn< Doubletime_p
ScalarColumn< DoublefocusLength_p
ScalarColumn< IntphasedFeedId_p
ArrayMeasColumn< MDirectionbeamOffsetMeas_p
 Access to Measure columns.
ScalarMeasColumn< MPositionpositionMeas_p
ScalarMeasColumn< MEpochtimeMeas_p
ArrayQuantColumn< DoublebeamOffsetQuant_p
 Access to Quantum columns.
ScalarQuantColumn< DoubleintervalQuant_p
ArrayQuantColumn< DoublepositionQuant_p
ArrayQuantColumn< DoublereceptorAngleQuant_p
ScalarQuantColumn< DoubletimeQuant_p
ScalarQuantColumn< DoublefocusLengthQuant_p

Detailed Description

A class to provide easy read-write access to MSFeed columns.

Intended use:

Public interface

Review Status

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

Prerequisite

Etymology

MSFeedColumns stands for MeasurementSet Feed Table columns.

Synopsis

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

Motivation

See MSColumns for the motivation.

Definition at line 245 of file MSFeedColumns.h.


Constructor & Destructor Documentation

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

The desctructor does nothing special.


Member Function Documentation

Read-write access to required columns.

Definition at line 256 of file MSFeedColumns.h.

References antennaId_p.

Referenced by antennaId().

Read-only access to required columns.

Reimplemented from casa::ROMSFeedColumns.

Definition at line 290 of file MSFeedColumns.h.

References antennaId().

void casa::MSFeedColumns::attach ( MSFeed msFeed) [protected]
void casa::MSFeedColumns::attachOptionalCols ( MSFeed msFeed) [private]

Definition at line 257 of file MSFeedColumns.h.

References beamId_p.

Referenced by beamId().

const ROScalarColumn<Int>& casa::MSFeedColumns::beamId ( ) const [inline]

Reimplemented from casa::ROMSFeedColumns.

Definition at line 292 of file MSFeedColumns.h.

References beamId().

Definition at line 258 of file MSFeedColumns.h.

References beamOffset_p.

Referenced by beamOffset().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 294 of file MSFeedColumns.h.

References beamOffset().

Definition at line 260 of file MSFeedColumns.h.

References beamOffsetMeas_p.

Referenced by beamOffsetMeas().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 298 of file MSFeedColumns.h.

References beamOffsetMeas().

Definition at line 259 of file MSFeedColumns.h.

References beamOffsetQuant_p.

Referenced by beamOffsetQuant().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 296 of file MSFeedColumns.h.

References beamOffsetQuant().

Definition at line 262 of file MSFeedColumns.h.

References feedId_p.

Referenced by feedId().

const ROScalarColumn<Int>& casa::MSFeedColumns::feedId ( ) const [inline]

Reimplemented from casa::ROMSFeedColumns.

Definition at line 300 of file MSFeedColumns.h.

References feedId().

Read-write access to optional columns.

Definition at line 283 of file MSFeedColumns.h.

References focusLength_p.

Referenced by focusLength().

Read-only access to optional columns.

Reimplemented from casa::ROMSFeedColumns.

Definition at line 334 of file MSFeedColumns.h.

References focusLength().

Definition at line 284 of file MSFeedColumns.h.

References focusLengthQuant_p.

Referenced by focusLengthQuant().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 336 of file MSFeedColumns.h.

References focusLengthQuant().

Definition at line 263 of file MSFeedColumns.h.

References interval_p.

Referenced by interval().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 302 of file MSFeedColumns.h.

References interval().

Definition at line 264 of file MSFeedColumns.h.

References intervalQuant_p.

Referenced by intervalQuant().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 304 of file MSFeedColumns.h.

References intervalQuant().

Definition at line 265 of file MSFeedColumns.h.

References numReceptors_p.

Referenced by numReceptors().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 306 of file MSFeedColumns.h.

References numReceptors().

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

Definition at line 285 of file MSFeedColumns.h.

References phasedFeedId_p.

Referenced by phasedFeedId().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 338 of file MSFeedColumns.h.

References phasedFeedId().

Definition at line 267 of file MSFeedColumns.h.

References polarizationType_p.

Referenced by polarizationType().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 310 of file MSFeedColumns.h.

References polarizationType().

Definition at line 266 of file MSFeedColumns.h.

References polResponse_p.

Referenced by polResponse().

const ROArrayColumn<Complex>& casa::MSFeedColumns::polResponse ( ) const [inline]

Reimplemented from casa::ROMSFeedColumns.

Definition at line 308 of file MSFeedColumns.h.

References polResponse().

Definition at line 268 of file MSFeedColumns.h.

References position_p.

Referenced by position().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 312 of file MSFeedColumns.h.

References position().

Definition at line 270 of file MSFeedColumns.h.

References positionMeas_p.

Referenced by positionMeas().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 316 of file MSFeedColumns.h.

References positionMeas().

Definition at line 269 of file MSFeedColumns.h.

References positionQuant_p.

Referenced by positionQuant().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 314 of file MSFeedColumns.h.

References positionQuant().

Definition at line 272 of file MSFeedColumns.h.

References receptorAngle_p.

Referenced by receptorAngle().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 318 of file MSFeedColumns.h.

References receptorAngle().

Definition at line 273 of file MSFeedColumns.h.

References receptorAngleQuant_p.

Referenced by receptorAngleQuant().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 320 of file MSFeedColumns.h.

References receptorAngleQuant().

set the direction type for the BEAM_OFFSET column.

This can only be done when the table has no rows. Trying to do so at other times will throw an exception.

void casa::MSFeedColumns::setEpochRef ( MEpoch::Types  ref,
Bool  tableMustBeEmpty = True 
)

set the epoch type for the TIME column.


Tip: In principle this function can only be used if the table is empty, otherwise already written values may thereafter have an incorrect reference, offset, or unit; However, it is possible that part of the table gets written before these values are known; In that case the reference, offset, or units can be set by using a False tableMustBeEmpty argument;

set the position type for the POSITION column.

This can only be done when the table has no rows. Trying to do so at other times will throw an exception.

Definition at line 275 of file MSFeedColumns.h.

References spectralWindowId_p.

Referenced by spectralWindowId().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 322 of file MSFeedColumns.h.

References spectralWindowId().

Definition at line 276 of file MSFeedColumns.h.

References time_p.

Referenced by time().

const ROScalarColumn<Double>& casa::MSFeedColumns::time ( ) const [inline]

Reimplemented from casa::ROMSFeedColumns.

Definition at line 324 of file MSFeedColumns.h.

References time().

Definition at line 278 of file MSFeedColumns.h.

References timeMeas_p.

Referenced by timeMeas().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 328 of file MSFeedColumns.h.

References timeMeas().

Definition at line 277 of file MSFeedColumns.h.

References timeQuant_p.

Referenced by timeQuant().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 326 of file MSFeedColumns.h.

References timeQuant().


Member Data Documentation

Reimplemented from casa::ROMSFeedColumns.

Definition at line 381 of file MSFeedColumns.h.

Referenced by antennaId().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 382 of file MSFeedColumns.h.

Referenced by beamId().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 383 of file MSFeedColumns.h.

Referenced by beamOffset().

Access to Measure columns.

Reimplemented from casa::ROMSFeedColumns.

Definition at line 398 of file MSFeedColumns.h.

Referenced by beamOffsetMeas().

Access to Quantum columns.

Reimplemented from casa::ROMSFeedColumns.

Definition at line 403 of file MSFeedColumns.h.

Referenced by beamOffsetQuant().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 384 of file MSFeedColumns.h.

Referenced by feedId().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 394 of file MSFeedColumns.h.

Referenced by focusLength().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 409 of file MSFeedColumns.h.

Referenced by focusLengthQuant().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 385 of file MSFeedColumns.h.

Referenced by interval().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 404 of file MSFeedColumns.h.

Referenced by intervalQuant().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 386 of file MSFeedColumns.h.

Referenced by numReceptors().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 395 of file MSFeedColumns.h.

Referenced by phasedFeedId().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 388 of file MSFeedColumns.h.

Referenced by polarizationType().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 387 of file MSFeedColumns.h.

Referenced by polResponse().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 389 of file MSFeedColumns.h.

Referenced by position().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 399 of file MSFeedColumns.h.

Referenced by positionMeas().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 405 of file MSFeedColumns.h.

Referenced by positionQuant().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 390 of file MSFeedColumns.h.

Referenced by receptorAngle().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 406 of file MSFeedColumns.h.

Referenced by receptorAngleQuant().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 391 of file MSFeedColumns.h.

Referenced by spectralWindowId().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 392 of file MSFeedColumns.h.

Referenced by time().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 400 of file MSFeedColumns.h.

Referenced by timeMeas().

Reimplemented from casa::ROMSFeedColumns.

Definition at line 407 of file MSFeedColumns.h.

Referenced by timeQuant().


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