casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
casacore::MSFeedColumns Class Reference

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

#include <MSFeedColumns.h>

Inheritance diagram for casacore::MSFeedColumns:
casacore::ROMSFeedColumns

Public Member Functions

 MSFeedColumns (MSFeed &msFeed)
 Create a columns object that accesses the data in the specified Table. More...
 
 ~MSFeedColumns ()
 The desctructor does nothing special. More...
 
ScalarColumn< Int > & antennaId ()
 Read-write access to required columns. More...
 
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. More...
 
ScalarQuantColumn< Double > & focusLengthQuant ()
 
ScalarColumn< Int > & phasedFeedId ()
 
const ROScalarColumn< Int > & antennaId () const
 Read-only access to required columns. More...
 
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. More...
 
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. More...
 
void setDirectionRef (MDirection::Types ref)
 set the direction type for the BEAM_OFFSET column. More...
 
void setPositionRef (MPosition::Types ref)
 set the position type for the POSITION column. More...
 
- Public Member Functions inherited from casacore::ROMSFeedColumns
 ROMSFeedColumns (const MSFeed &msFeed)
 Create a columns object that accesses the data in the specified Table. More...
 
 ~ROMSFeedColumns ()
 The destructor does nothing special. More...
 
const ROScalarColumn< Int > & antennaId () const
 Access to required columns. More...
 
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. More...
 
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. More...
 
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. More...
 

Protected Member Functions

 MSFeedColumns ()
 
void attach (MSFeed &msFeed)
 
- Protected Member Functions inherited from casacore::ROMSFeedColumns
 ROMSFeedColumns ()
 
void attach (const 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
 
ScalarMeasColumn< MPositionpositionMeas_p
 
ScalarMeasColumn< MEpochtimeMeas_p
 
ArrayQuantColumn< DoublebeamOffsetQuant_p
 
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

casacore::MSFeedColumns::MSFeedColumns ( MSFeed msFeed)

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

casacore::MSFeedColumns::~MSFeedColumns ( )

The desctructor does nothing special.

casacore::MSFeedColumns::MSFeedColumns ( )
protected
casacore::MSFeedColumns::MSFeedColumns ( const MSFeedColumns )
private

Member Function Documentation

ScalarColumn<Int>& casacore::MSFeedColumns::antennaId ( )
inline

Read-write access to required columns.

Definition at line 256 of file MSFeedColumns.h.

References antennaId_p.

const ROScalarColumn<Int>& casacore::MSFeedColumns::antennaId ( ) const
inline

Read-only access to required columns.

Definition at line 290 of file MSFeedColumns.h.

References casacore::ROMSFeedColumns::antennaId().

void casacore::MSFeedColumns::attach ( MSFeed msFeed)
protected
void casacore::MSFeedColumns::attachOptionalCols ( MSFeed msFeed)
private
ScalarColumn<Int>& casacore::MSFeedColumns::beamId ( )
inline

Definition at line 257 of file MSFeedColumns.h.

References beamId_p.

const ROScalarColumn<Int>& casacore::MSFeedColumns::beamId ( ) const
inline

Definition at line 292 of file MSFeedColumns.h.

References casacore::ROMSFeedColumns::beamId().

ArrayColumn<Double>& casacore::MSFeedColumns::beamOffset ( )
inline

Definition at line 258 of file MSFeedColumns.h.

References beamOffset_p.

const ROArrayColumn<Double>& casacore::MSFeedColumns::beamOffset ( ) const
inline

Definition at line 294 of file MSFeedColumns.h.

References casacore::ROMSFeedColumns::beamOffset().

ArrayMeasColumn<MDirection>& casacore::MSFeedColumns::beamOffsetMeas ( )
inline

Definition at line 260 of file MSFeedColumns.h.

References beamOffsetMeas_p.

const ROArrayMeasColumn<MDirection>& casacore::MSFeedColumns::beamOffsetMeas ( ) const
inline

Definition at line 298 of file MSFeedColumns.h.

References casacore::ROMSFeedColumns::beamOffsetMeas().

ArrayQuantColumn<Double>& casacore::MSFeedColumns::beamOffsetQuant ( )
inline

Definition at line 259 of file MSFeedColumns.h.

References beamOffsetQuant_p.

const ROArrayQuantColumn<Double>& casacore::MSFeedColumns::beamOffsetQuant ( ) const
inline

Definition at line 296 of file MSFeedColumns.h.

References casacore::ROMSFeedColumns::beamOffsetQuant().

ScalarColumn<Int>& casacore::MSFeedColumns::feedId ( )
inline

Definition at line 262 of file MSFeedColumns.h.

References feedId_p.

const ROScalarColumn<Int>& casacore::MSFeedColumns::feedId ( ) const
inline

Definition at line 300 of file MSFeedColumns.h.

References casacore::ROMSFeedColumns::feedId().

ScalarColumn<Double>& casacore::MSFeedColumns::focusLength ( )
inline

Read-write access to optional columns.

Definition at line 283 of file MSFeedColumns.h.

References focusLength_p.

const ROScalarColumn<Double>& casacore::MSFeedColumns::focusLength ( ) const
inline

Read-only access to optional columns.

Definition at line 334 of file MSFeedColumns.h.

References casacore::ROMSFeedColumns::focusLength().

ScalarQuantColumn<Double>& casacore::MSFeedColumns::focusLengthQuant ( )
inline

Definition at line 284 of file MSFeedColumns.h.

References focusLengthQuant_p.

const ROScalarQuantColumn<Double>& casacore::MSFeedColumns::focusLengthQuant ( ) const
inline

Definition at line 336 of file MSFeedColumns.h.

References casacore::ROMSFeedColumns::focusLengthQuant().

ScalarColumn<Double>& casacore::MSFeedColumns::interval ( )
inline

Definition at line 263 of file MSFeedColumns.h.

References interval_p.

const ROScalarColumn<Double>& casacore::MSFeedColumns::interval ( ) const
inline

Definition at line 302 of file MSFeedColumns.h.

References casacore::ROMSFeedColumns::interval().

ScalarQuantColumn<Double>& casacore::MSFeedColumns::intervalQuant ( )
inline

Definition at line 264 of file MSFeedColumns.h.

References intervalQuant_p.

const ROScalarQuantColumn<Double>& casacore::MSFeedColumns::intervalQuant ( ) const
inline

Definition at line 304 of file MSFeedColumns.h.

References casacore::ROMSFeedColumns::intervalQuant().

ScalarColumn<Int>& casacore::MSFeedColumns::numReceptors ( )
inline

Definition at line 265 of file MSFeedColumns.h.

References numReceptors_p.

const ROScalarColumn<Int>& casacore::MSFeedColumns::numReceptors ( ) const
inline

Definition at line 306 of file MSFeedColumns.h.

References casacore::ROMSFeedColumns::numReceptors().

MSFeedColumns& casacore::MSFeedColumns::operator= ( const MSFeedColumns )
private
ScalarColumn<Int>& casacore::MSFeedColumns::phasedFeedId ( )
inline

Definition at line 285 of file MSFeedColumns.h.

References phasedFeedId_p.

const ROScalarColumn<Int>& casacore::MSFeedColumns::phasedFeedId ( ) const
inline

Definition at line 338 of file MSFeedColumns.h.

References casacore::ROMSFeedColumns::phasedFeedId().

ArrayColumn<String>& casacore::MSFeedColumns::polarizationType ( )
inline

Definition at line 267 of file MSFeedColumns.h.

References polarizationType_p.

const ROArrayColumn<String>& casacore::MSFeedColumns::polarizationType ( ) const
inline

Definition at line 310 of file MSFeedColumns.h.

References casacore::ROMSFeedColumns::polarizationType().

ArrayColumn<Complex>& casacore::MSFeedColumns::polResponse ( )
inline

Definition at line 266 of file MSFeedColumns.h.

References polResponse_p.

const ROArrayColumn<Complex>& casacore::MSFeedColumns::polResponse ( ) const
inline

Definition at line 308 of file MSFeedColumns.h.

References casacore::ROMSFeedColumns::polResponse().

ArrayColumn<Double>& casacore::MSFeedColumns::position ( )
inline

Definition at line 268 of file MSFeedColumns.h.

References position_p.

const ROArrayColumn<Double>& casacore::MSFeedColumns::position ( ) const
inline

Definition at line 312 of file MSFeedColumns.h.

References casacore::ROMSFeedColumns::position().

ScalarMeasColumn<MPosition>& casacore::MSFeedColumns::positionMeas ( )
inline

Definition at line 270 of file MSFeedColumns.h.

References positionMeas_p.

const ROScalarMeasColumn<MPosition>& casacore::MSFeedColumns::positionMeas ( ) const
inline

Definition at line 316 of file MSFeedColumns.h.

References casacore::ROMSFeedColumns::positionMeas().

ArrayQuantColumn<Double>& casacore::MSFeedColumns::positionQuant ( )
inline

Definition at line 269 of file MSFeedColumns.h.

References positionQuant_p.

const ROArrayQuantColumn<Double>& casacore::MSFeedColumns::positionQuant ( ) const
inline

Definition at line 314 of file MSFeedColumns.h.

References casacore::ROMSFeedColumns::positionQuant().

ArrayColumn<Double>& casacore::MSFeedColumns::receptorAngle ( )
inline

Definition at line 272 of file MSFeedColumns.h.

References receptorAngle_p.

const ROArrayColumn<Double>& casacore::MSFeedColumns::receptorAngle ( ) const
inline

Definition at line 318 of file MSFeedColumns.h.

References casacore::ROMSFeedColumns::receptorAngle().

ArrayQuantColumn<Double>& casacore::MSFeedColumns::receptorAngleQuant ( )
inline

Definition at line 273 of file MSFeedColumns.h.

References receptorAngleQuant_p.

const ROArrayQuantColumn<Double>& casacore::MSFeedColumns::receptorAngleQuant ( ) const
inline

Definition at line 320 of file MSFeedColumns.h.

References casacore::ROMSFeedColumns::receptorAngleQuant().

void casacore::MSFeedColumns::setDirectionRef ( MDirection::Types  ref)

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 casacore::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;

void casacore::MSFeedColumns::setPositionRef ( MPosition::Types  ref)

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.

ScalarColumn<Int>& casacore::MSFeedColumns::spectralWindowId ( )
inline

Definition at line 275 of file MSFeedColumns.h.

References spectralWindowId_p.

const ROScalarColumn<Int>& casacore::MSFeedColumns::spectralWindowId ( ) const
inline

Definition at line 322 of file MSFeedColumns.h.

References casacore::ROMSFeedColumns::spectralWindowId().

ScalarColumn<Double>& casacore::MSFeedColumns::time ( void  )
inline

Definition at line 276 of file MSFeedColumns.h.

References time_p.

const ROScalarColumn<Double>& casacore::MSFeedColumns::time ( void  ) const
inline

Definition at line 324 of file MSFeedColumns.h.

References casacore::ROMSFeedColumns::time().

ScalarMeasColumn<MEpoch>& casacore::MSFeedColumns::timeMeas ( )
inline

Definition at line 278 of file MSFeedColumns.h.

References timeMeas_p.

const ROScalarMeasColumn<MEpoch>& casacore::MSFeedColumns::timeMeas ( ) const
inline

Definition at line 328 of file MSFeedColumns.h.

References casacore::ROMSFeedColumns::timeMeas().

ScalarQuantColumn<Double>& casacore::MSFeedColumns::timeQuant ( )
inline

Definition at line 277 of file MSFeedColumns.h.

References timeQuant_p.

const ROScalarQuantColumn<Double>& casacore::MSFeedColumns::timeQuant ( ) const
inline

Definition at line 326 of file MSFeedColumns.h.

References casacore::ROMSFeedColumns::timeQuant().

Member Data Documentation

ScalarColumn<Int> casacore::MSFeedColumns::antennaId_p
private

Definition at line 381 of file MSFeedColumns.h.

Referenced by antennaId().

ScalarColumn<Int> casacore::MSFeedColumns::beamId_p
private

Definition at line 382 of file MSFeedColumns.h.

Referenced by beamId().

ArrayColumn<Double> casacore::MSFeedColumns::beamOffset_p
private

Definition at line 383 of file MSFeedColumns.h.

Referenced by beamOffset().

ArrayMeasColumn<MDirection> casacore::MSFeedColumns::beamOffsetMeas_p
private

Definition at line 398 of file MSFeedColumns.h.

Referenced by beamOffsetMeas().

ArrayQuantColumn<Double> casacore::MSFeedColumns::beamOffsetQuant_p
private

Definition at line 403 of file MSFeedColumns.h.

Referenced by beamOffsetQuant().

ScalarColumn<Int> casacore::MSFeedColumns::feedId_p
private

Definition at line 384 of file MSFeedColumns.h.

Referenced by feedId().

ScalarColumn<Double> casacore::MSFeedColumns::focusLength_p
private

Definition at line 394 of file MSFeedColumns.h.

Referenced by focusLength().

ScalarQuantColumn<Double> casacore::MSFeedColumns::focusLengthQuant_p
private

Definition at line 409 of file MSFeedColumns.h.

Referenced by focusLengthQuant().

ScalarColumn<Double> casacore::MSFeedColumns::interval_p
private

Definition at line 385 of file MSFeedColumns.h.

Referenced by interval().

ScalarQuantColumn<Double> casacore::MSFeedColumns::intervalQuant_p
private

Definition at line 404 of file MSFeedColumns.h.

Referenced by intervalQuant().

ScalarColumn<Int> casacore::MSFeedColumns::numReceptors_p
private

Definition at line 386 of file MSFeedColumns.h.

Referenced by numReceptors().

ScalarColumn<Int> casacore::MSFeedColumns::phasedFeedId_p
private

Definition at line 395 of file MSFeedColumns.h.

Referenced by phasedFeedId().

ArrayColumn<String> casacore::MSFeedColumns::polarizationType_p
private

Definition at line 388 of file MSFeedColumns.h.

Referenced by polarizationType().

ArrayColumn<Complex> casacore::MSFeedColumns::polResponse_p
private

Definition at line 387 of file MSFeedColumns.h.

Referenced by polResponse().

ArrayColumn<Double> casacore::MSFeedColumns::position_p
private

Definition at line 389 of file MSFeedColumns.h.

Referenced by position().

ScalarMeasColumn<MPosition> casacore::MSFeedColumns::positionMeas_p
private

Definition at line 399 of file MSFeedColumns.h.

Referenced by positionMeas().

ArrayQuantColumn<Double> casacore::MSFeedColumns::positionQuant_p
private

Definition at line 405 of file MSFeedColumns.h.

Referenced by positionQuant().

ArrayColumn<Double> casacore::MSFeedColumns::receptorAngle_p
private

Definition at line 390 of file MSFeedColumns.h.

Referenced by receptorAngle().

ArrayQuantColumn<Double> casacore::MSFeedColumns::receptorAngleQuant_p
private

Definition at line 406 of file MSFeedColumns.h.

Referenced by receptorAngleQuant().

ScalarColumn<Int> casacore::MSFeedColumns::spectralWindowId_p
private

Definition at line 391 of file MSFeedColumns.h.

Referenced by spectralWindowId().

ScalarColumn<Double> casacore::MSFeedColumns::time_p
private

Definition at line 392 of file MSFeedColumns.h.

Referenced by time().

ScalarMeasColumn<MEpoch> casacore::MSFeedColumns::timeMeas_p
private

Definition at line 400 of file MSFeedColumns.h.

Referenced by timeMeas().

ScalarQuantColumn<Double> casacore::MSFeedColumns::timeQuant_p
private

Definition at line 407 of file MSFeedColumns.h.

Referenced by timeQuant().


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