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

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

#include <MSFeedColumns.h>

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

List of all members.

Public Member Functions

 ROMSFeedColumns (const MSFeed &msFeed)
 Create a columns object that accesses the data in the specified Table.
 ~ROMSFeedColumns ()
 The destructor does nothing special.
const ROScalarColumn< Int > & antennaId () const
 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
 Access to optional columns.
const ROScalarQuantColumn
< Double > & 
focusLengthQuant () const
const ROScalarColumn< Int > & phasedFeedId () const
uInt nrow () const
 Convenience function that returns the number of rows in any of the columns.
Int matchFeed (Quantum< Double > &newTimeQ, Quantum< Double > &newIntervalQ, const Int &antId, const Int &fId, const Int &spwId, const Quantum< Double > &timeQ, const Quantum< Double > &intervalQ, const Int &numRec, const Array< Quantum< Double > > &beamOffsetQ, const Array< String > &polType, const Array< Complex > &polResp, const Array< Quantum< Double > > &positionQ, const Array< Quantum< Double > > &receptorAngleQ, const Vector< uInt > &ignoreRows, const Quantum< Double > &focusLengthQ=Quantum< Double >())
 Returns the last row that contains a feed with the specified values.

Protected Member Functions

 ROMSFeedColumns ()
void attach (const MSFeed &msFeed)

Private Member Functions

 ROMSFeedColumns (const ROMSFeedColumns &)
ROMSFeedColumnsoperator= (const ROMSFeedColumns &)
void attachOptionalCols (const MSFeed &msFeed)

Private Attributes

ROScalarColumn< IntantennaId_p
ROScalarColumn< IntbeamId_p
ROArrayColumn< DoublebeamOffset_p
ROScalarColumn< IntfeedId_p
ROScalarColumn< Doubleinterval_p
ROScalarColumn< IntnumReceptors_p
ROArrayColumn< Complex > polResponse_p
ROArrayColumn< StringpolarizationType_p
ROArrayColumn< Doubleposition_p
ROArrayColumn< DoublereceptorAngle_p
ROScalarColumn< IntspectralWindowId_p
ROScalarColumn< Doubletime_p
ROScalarColumn< DoublefocusLength_p
ROScalarColumn< IntphasedFeedId_p
ROArrayMeasColumn< MDirectionbeamOffsetMeas_p
 Access to Measure columns.
ROScalarMeasColumn< MPositionpositionMeas_p
ROScalarMeasColumn< MEpochtimeMeas_p
ROArrayQuantColumn< DoublebeamOffsetQuant_p
 Access to Quantum columns.
ROScalarQuantColumn< DoubleintervalQuant_p
ROArrayQuantColumn< DoublepositionQuant_p
ROArrayQuantColumn< DoublereceptorAngleQuant_p
ROScalarQuantColumn< DoubletimeQuant_p
ROScalarQuantColumn< DoublefocusLengthQuant_p

Detailed Description

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

Intended use:

Public interface

Review Status

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

Prerequisite

Etymology

ROMSFeedColumns stands for Read-Only MeasurementSet Feed Table columns.

Synopsis

This class provides read-only 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 ROMSColumns for an example.

Motivation

See MSColumns for the motivation.

Definition at line 84 of file MSFeedColumns.h.


Constructor & Destructor Documentation

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

The destructor does nothing special.


Member Function Documentation

Access to required columns.

Reimplemented in casa::MSFeedColumns.

Definition at line 95 of file MSFeedColumns.h.

References antennaId_p.

void casa::ROMSFeedColumns::attach ( const MSFeed msFeed) [protected]
void casa::ROMSFeedColumns::attachOptionalCols ( const MSFeed msFeed) [private]
const ROScalarColumn<Int>& casa::ROMSFeedColumns::beamId ( ) const [inline]

Reimplemented in casa::MSFeedColumns.

Definition at line 96 of file MSFeedColumns.h.

References beamId_p.

Reimplemented in casa::MSFeedColumns.

Definition at line 97 of file MSFeedColumns.h.

References beamOffset_p.

Reimplemented in casa::MSFeedColumns.

Definition at line 100 of file MSFeedColumns.h.

References beamOffsetMeas_p.

Reimplemented in casa::MSFeedColumns.

Definition at line 98 of file MSFeedColumns.h.

References beamOffsetQuant_p.

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

Reimplemented in casa::MSFeedColumns.

Definition at line 102 of file MSFeedColumns.h.

References feedId_p.

Access to optional columns.

Reimplemented in casa::MSFeedColumns.

Definition at line 128 of file MSFeedColumns.h.

References focusLength_p.

Reimplemented in casa::MSFeedColumns.

Definition at line 129 of file MSFeedColumns.h.

References focusLengthQuant_p.

Reimplemented in casa::MSFeedColumns.

Definition at line 103 of file MSFeedColumns.h.

References interval_p.

Reimplemented in casa::MSFeedColumns.

Definition at line 104 of file MSFeedColumns.h.

References intervalQuant_p.

Int casa::ROMSFeedColumns::matchFeed ( Quantum< Double > &  newTimeQ,
Quantum< Double > &  newIntervalQ,
const Int antId,
const Int fId,
const Int spwId,
const Quantum< Double > &  timeQ,
const Quantum< Double > &  intervalQ,
const Int numRec,
const Array< Quantum< Double > > &  beamOffsetQ,
const Array< String > &  polType,
const Array< Complex > &  polResp,
const Array< Quantum< Double > > &  positionQ,
const Array< Quantum< Double > > &  receptorAngleQ,
const Vector< uInt > &  ignoreRows,
const Quantum< Double > &  focusLengthQ = QuantumDouble >() 
)

Returns the last row that contains a feed with the specified values.

If no matching row can be found, but a match is possible if the validity time interval is widened, return that row and the suggestion for the new time information. If no change to time is necessary, newTimeQ and newIntervalQ are zero. Returns -1 if no match could be found. Ignore the Feed table rows contained in vector ignoreRows. focusLengthQ is only compared if this optional column is present and if the value of focusLengthQ is not dimensionless.

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

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

Definition at line 135 of file MSFeedColumns.h.

References antennaId_p.

Reimplemented in casa::MSFeedColumns.

Definition at line 106 of file MSFeedColumns.h.

References numReceptors_p.

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

Reimplemented in casa::MSFeedColumns.

Definition at line 131 of file MSFeedColumns.h.

References phasedFeedId_p.

Reimplemented in casa::MSFeedColumns.

Definition at line 108 of file MSFeedColumns.h.

References polarizationType_p.

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

Reimplemented in casa::MSFeedColumns.

Definition at line 107 of file MSFeedColumns.h.

References polResponse_p.

Reimplemented in casa::MSFeedColumns.

Definition at line 110 of file MSFeedColumns.h.

References position_p.

Reimplemented in casa::MSFeedColumns.

Definition at line 113 of file MSFeedColumns.h.

References positionMeas_p.

Reimplemented in casa::MSFeedColumns.

Definition at line 111 of file MSFeedColumns.h.

References positionQuant_p.

Reimplemented in casa::MSFeedColumns.

Definition at line 115 of file MSFeedColumns.h.

References receptorAngle_p.

Reimplemented in casa::MSFeedColumns.

Definition at line 116 of file MSFeedColumns.h.

References receptorAngleQuant_p.

Reimplemented in casa::MSFeedColumns.

Definition at line 118 of file MSFeedColumns.h.

References spectralWindowId_p.

Reimplemented in casa::MSFeedColumns.

Definition at line 120 of file MSFeedColumns.h.

References time_p.

Reimplemented in casa::MSFeedColumns.

Definition at line 123 of file MSFeedColumns.h.

References timeMeas_p.

Reimplemented in casa::MSFeedColumns.

Definition at line 121 of file MSFeedColumns.h.

References timeQuant_p.


Member Data Documentation

Reimplemented in casa::MSFeedColumns.

Definition at line 181 of file MSFeedColumns.h.

Referenced by antennaId(), and nrow().

Reimplemented in casa::MSFeedColumns.

Definition at line 182 of file MSFeedColumns.h.

Referenced by beamId().

Reimplemented in casa::MSFeedColumns.

Definition at line 183 of file MSFeedColumns.h.

Referenced by beamOffset().

Access to Measure columns.

Reimplemented in casa::MSFeedColumns.

Definition at line 198 of file MSFeedColumns.h.

Referenced by beamOffsetMeas().

Access to Quantum columns.

Reimplemented in casa::MSFeedColumns.

Definition at line 203 of file MSFeedColumns.h.

Referenced by beamOffsetQuant().

Reimplemented in casa::MSFeedColumns.

Definition at line 184 of file MSFeedColumns.h.

Referenced by feedId().

Reimplemented in casa::MSFeedColumns.

Definition at line 194 of file MSFeedColumns.h.

Referenced by focusLength().

Reimplemented in casa::MSFeedColumns.

Definition at line 209 of file MSFeedColumns.h.

Referenced by focusLengthQuant().

Reimplemented in casa::MSFeedColumns.

Definition at line 185 of file MSFeedColumns.h.

Referenced by interval().

Reimplemented in casa::MSFeedColumns.

Definition at line 204 of file MSFeedColumns.h.

Referenced by intervalQuant().

Reimplemented in casa::MSFeedColumns.

Definition at line 186 of file MSFeedColumns.h.

Referenced by numReceptors().

Reimplemented in casa::MSFeedColumns.

Definition at line 195 of file MSFeedColumns.h.

Referenced by phasedFeedId().

Reimplemented in casa::MSFeedColumns.

Definition at line 188 of file MSFeedColumns.h.

Referenced by polarizationType().

Reimplemented in casa::MSFeedColumns.

Definition at line 187 of file MSFeedColumns.h.

Referenced by polResponse().

Reimplemented in casa::MSFeedColumns.

Definition at line 189 of file MSFeedColumns.h.

Referenced by position().

Reimplemented in casa::MSFeedColumns.

Definition at line 199 of file MSFeedColumns.h.

Referenced by positionMeas().

Reimplemented in casa::MSFeedColumns.

Definition at line 205 of file MSFeedColumns.h.

Referenced by positionQuant().

Reimplemented in casa::MSFeedColumns.

Definition at line 190 of file MSFeedColumns.h.

Referenced by receptorAngle().

Reimplemented in casa::MSFeedColumns.

Definition at line 206 of file MSFeedColumns.h.

Referenced by receptorAngleQuant().

Reimplemented in casa::MSFeedColumns.

Definition at line 191 of file MSFeedColumns.h.

Referenced by spectralWindowId().

Reimplemented in casa::MSFeedColumns.

Definition at line 192 of file MSFeedColumns.h.

Referenced by time().

Reimplemented in casa::MSFeedColumns.

Definition at line 200 of file MSFeedColumns.h.

Referenced by timeMeas().

Reimplemented in casa::MSFeedColumns.

Definition at line 207 of file MSFeedColumns.h.

Referenced by timeQuant().


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