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

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

#include <MSAntennaColumns.h>

Inheritance diagram for casacore::MSAntennaColumns:
casacore::ROMSAntennaColumns

Public Member Functions

 MSAntennaColumns (MSAntenna &msAntenna)
 Create a columns object that accesses the data in the specified Table. More...
 
 ~MSAntennaColumns ()
 The destructor does nothing special. More...
 
ScalarColumn< Double > & dishDiameter ()
 Read-write access to required columns. More...
 
ScalarQuantColumn< Double > & dishDiameterQuant ()
 
ScalarColumn< Bool > & flagRow ()
 
ScalarColumn< String > & mount ()
 
ScalarColumn< String > & name ()
 
ArrayColumn< Double > & offset ()
 
ArrayQuantColumn< Double > & offsetQuant ()
 
ScalarMeasColumn< MPosition > & offsetMeas ()
 
ArrayColumn< Double > & position ()
 
ArrayQuantColumn< Double > & positionQuant ()
 
ScalarMeasColumn< MPosition > & positionMeas ()
 
ScalarColumn< String > & station ()
 
ScalarColumn< String > & type ()
 
ArrayColumn< Double > & meanOrbit ()
 Read-write access to optional columns. More...
 
ScalarColumn< Int > & orbitId ()
 
ScalarColumn< Int > & phasedArrayId ()
 
const ROScalarColumn< Double > & dishDiameter () const
 Read-only access to required columns. More...
 
const ROScalarQuantColumn
< Double > & 
dishDiameterQuant () const
 
const ROScalarColumn< Bool > & flagRow () const
 
const ROScalarColumn< String > & mount () const
 
const ROScalarColumn< String > & name () const
 
const ROArrayColumn< Double > & offset () const
 
const ROArrayQuantColumn
< Double > & 
offsetQuant () const
 
const ROScalarMeasColumn
< MPosition > & 
offsetMeas () const
 
const ROArrayColumn< Double > & position () const
 
const ROArrayQuantColumn
< Double > & 
positionQuant () const
 
const ROScalarMeasColumn
< MPosition > & 
positionMeas () const
 
const ROScalarColumn< String > & station () const
 
const ROScalarColumn< String > & type () const
 
const ROArrayColumn< Double > & meanOrbit () const
 Read-only access to optional columns. More...
 
const ROScalarColumn< Int > & orbitId () const
 
const ROScalarColumn< Int > & phasedArrayId () const
 
void setPositionRef (MPosition::Types ref)
 set the position type for the POSITION column. More...
 
void setOffsetRef (MPosition::Types ref)
 set the position type for the OFFSET column. More...
 
- Public Member Functions inherited from casacore::ROMSAntennaColumns
 ROMSAntennaColumns (const MSAntenna &msAntenna)
 Create a columns object that accesses the data in the specified Table. More...
 
 ~ROMSAntennaColumns ()
 The destructor does nothing special. More...
 
const ROScalarColumn< Double > & dishDiameter () const
 Access to columns. More...
 
const ROScalarQuantColumn
< Double > & 
dishDiameterQuant () const
 
const ROScalarColumn< Bool > & flagRow () const
 
const ROScalarColumn< String > & mount () const
 
const ROScalarColumn< String > & name () const
 
const ROArrayColumn< Double > & offset () const
 
const ROArrayQuantColumn
< Double > & 
offsetQuant () const
 
const ROScalarMeasColumn
< MPosition > & 
offsetMeas () const
 
const ROArrayColumn< Double > & position () const
 
const ROArrayQuantColumn
< Double > & 
positionQuant () const
 
const ROScalarMeasColumn
< MPosition > & 
positionMeas () const
 
const ROScalarColumn< String > & station () const
 
const ROScalarColumn< String > & type () const
 
const ROArrayColumn< Double > & meanOrbit () const
 Access to optional columns. More...
 
const ROScalarColumn< Int > & orbitId () const
 
const ROScalarColumn< Int > & phasedArrayId () const
 
uInt nrow () const
 Convenience function that returns the number of rows in any of the columns. More...
 
Int matchAntenna (const MPosition &antennaPos, const Quantum< Double > &tolerance, Int tryRow=-1)
 returns the last row that contains an antenna at the specified position, to within the specified tolerance. More...
 
Int matchAntenna (const String &antName, const MPosition &antennaPos, const Quantum< Double > &tolerance, Int tryRow=-1)
 Same as the previous function except that the antenna name must also match. More...
 
Int matchAntennaAndStation (const String &antName, const String &stationName, const MPosition &antennaPos, const Quantum< Double > &tolerance, Int tryRow=-1)
 Same as the previous function except that the station name must also match. More...
 

Protected Member Functions

 MSAntennaColumns ()
 
void attach (MSAntenna &msAntenna)
 
- Protected Member Functions inherited from casacore::ROMSAntennaColumns
 ROMSAntennaColumns ()
 
void attach (const MSAntenna &msAntenna)
 

Private Member Functions

 MSAntennaColumns (const MSAntennaColumns &)
 
MSAntennaColumnsoperator= (const MSAntennaColumns &)
 
void attachOptionalCols (MSAntenna &msAntenna)
 

Private Attributes

ScalarColumn< DoubledishDiameter_p
 
ScalarColumn< BoolflagRow_p
 
ScalarColumn< Stringmount_p
 
ScalarColumn< Stringname_p
 
ArrayColumn< Doubleoffset_p
 
ArrayColumn< Doubleposition_p
 
ScalarColumn< Stringstation_p
 
ScalarColumn< Stringtype_p
 
ArrayColumn< DoublemeanOrbit_p
 
ScalarColumn< IntorbitId_p
 
ScalarColumn< IntphasedArrayId_p
 
ScalarMeasColumn< MPositionoffsetMeas_p
 
ScalarMeasColumn< MPositionpositionMeas_p
 
ScalarQuantColumn< DoubledishDiameterQuant_p
 
ArrayQuantColumn< DoubleoffsetQuant_p
 
ArrayQuantColumn< DoublepositionQuant_p
 

Detailed Description

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

Intended use:

Public interface

Review Status

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

Prerequisite

Etymology

MSAntennaColumns stands for MeasurementSet Antenna Table columns.

Synopsis

This class provides access to the columns in the MSAntenna 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 227 of file MSAntennaColumns.h.

Constructor & Destructor Documentation

casacore::MSAntennaColumns::MSAntennaColumns ( MSAntenna msAntenna)

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

casacore::MSAntennaColumns::~MSAntennaColumns ( )

The destructor does nothing special.

casacore::MSAntennaColumns::MSAntennaColumns ( )
protected
casacore::MSAntennaColumns::MSAntennaColumns ( const MSAntennaColumns )
private

Member Function Documentation

void casacore::MSAntennaColumns::attach ( MSAntenna msAntenna)
protected
void casacore::MSAntennaColumns::attachOptionalCols ( MSAntenna msAntenna)
private
ScalarColumn<Double>& casacore::MSAntennaColumns::dishDiameter ( )
inline

Read-write access to required columns.

Definition at line 239 of file MSAntennaColumns.h.

References dishDiameter_p.

Referenced by casa::sdfiller::AntennaRecord::fill().

const ROScalarColumn<Double>& casacore::MSAntennaColumns::dishDiameter ( ) const
inline

Read-only access to required columns.

Definition at line 263 of file MSAntennaColumns.h.

References casacore::ROMSAntennaColumns::dishDiameter().

ScalarQuantColumn<Double>& casacore::MSAntennaColumns::dishDiameterQuant ( )
inline

Definition at line 240 of file MSAntennaColumns.h.

References dishDiameterQuant_p.

const ROScalarQuantColumn<Double>& casacore::MSAntennaColumns::dishDiameterQuant ( ) const
inline
ScalarColumn<Bool>& casacore::MSAntennaColumns::flagRow ( )
inline

Definition at line 241 of file MSAntennaColumns.h.

References flagRow_p.

const ROScalarColumn<Bool>& casacore::MSAntennaColumns::flagRow ( ) const
inline

Definition at line 267 of file MSAntennaColumns.h.

References casacore::ROMSAntennaColumns::flagRow().

ArrayColumn<Double>& casacore::MSAntennaColumns::meanOrbit ( )
inline

Read-write access to optional columns.

Definition at line 256 of file MSAntennaColumns.h.

References meanOrbit_p.

const ROArrayColumn<Double>& casacore::MSAntennaColumns::meanOrbit ( ) const
inline

Read-only access to optional columns.

Definition at line 293 of file MSAntennaColumns.h.

References casacore::ROMSAntennaColumns::meanOrbit().

ScalarColumn<String>& casacore::MSAntennaColumns::mount ( )
inline

Definition at line 242 of file MSAntennaColumns.h.

References mount_p.

Referenced by casa::sdfiller::AntennaRecord::fill().

const ROScalarColumn<String>& casacore::MSAntennaColumns::mount ( ) const
inline

Definition at line 269 of file MSAntennaColumns.h.

References casacore::ROMSAntennaColumns::mount().

ScalarColumn<String>& casacore::MSAntennaColumns::name ( )
inline

Definition at line 243 of file MSAntennaColumns.h.

References name_p.

Referenced by casa::sdfiller::AntennaRecord::fill().

const ROScalarColumn<String>& casacore::MSAntennaColumns::name ( ) const
inline

Definition at line 271 of file MSAntennaColumns.h.

References casacore::ROMSAntennaColumns::name().

ArrayColumn<Double>& casacore::MSAntennaColumns::offset ( )
inline

Definition at line 244 of file MSAntennaColumns.h.

References offset_p.

const ROArrayColumn<Double>& casacore::MSAntennaColumns::offset ( ) const
inline

Definition at line 273 of file MSAntennaColumns.h.

References casacore::ROMSAntennaColumns::offset().

ScalarMeasColumn<MPosition>& casacore::MSAntennaColumns::offsetMeas ( )
inline

Definition at line 246 of file MSAntennaColumns.h.

References offsetMeas_p.

Referenced by casa::sdfiller::AntennaRecord::fill().

const ROScalarMeasColumn<MPosition>& casacore::MSAntennaColumns::offsetMeas ( ) const
inline

Definition at line 277 of file MSAntennaColumns.h.

References casacore::ROMSAntennaColumns::offsetMeas().

ArrayQuantColumn<Double>& casacore::MSAntennaColumns::offsetQuant ( )
inline

Definition at line 245 of file MSAntennaColumns.h.

References offsetQuant_p.

const ROArrayQuantColumn<Double>& casacore::MSAntennaColumns::offsetQuant ( ) const
inline

Definition at line 275 of file MSAntennaColumns.h.

References casacore::ROMSAntennaColumns::offsetQuant().

MSAntennaColumns& casacore::MSAntennaColumns::operator= ( const MSAntennaColumns )
private
ScalarColumn<Int>& casacore::MSAntennaColumns::orbitId ( )
inline

Definition at line 257 of file MSAntennaColumns.h.

References orbitId_p.

const ROScalarColumn<Int>& casacore::MSAntennaColumns::orbitId ( ) const
inline

Definition at line 295 of file MSAntennaColumns.h.

References casacore::ROMSAntennaColumns::orbitId().

ScalarColumn<Int>& casacore::MSAntennaColumns::phasedArrayId ( )
inline

Definition at line 258 of file MSAntennaColumns.h.

References phasedArrayId_p.

const ROScalarColumn<Int>& casacore::MSAntennaColumns::phasedArrayId ( ) const
inline

Definition at line 297 of file MSAntennaColumns.h.

References casacore::ROMSAntennaColumns::phasedArrayId().

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

Definition at line 247 of file MSAntennaColumns.h.

References position_p.

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

Definition at line 279 of file MSAntennaColumns.h.

References casacore::ROMSAntennaColumns::position().

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

Definition at line 249 of file MSAntennaColumns.h.

References positionMeas_p.

Referenced by casa::sdfiller::AntennaRecord::fill().

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

Definition at line 283 of file MSAntennaColumns.h.

References casacore::ROMSAntennaColumns::positionMeas().

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

Definition at line 248 of file MSAntennaColumns.h.

References positionQuant_p.

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

Definition at line 281 of file MSAntennaColumns.h.

References casacore::ROMSAntennaColumns::positionQuant().

void casacore::MSAntennaColumns::setOffsetRef ( MPosition::Types  ref)

set the position type for the 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::MSAntennaColumns::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<String>& casacore::MSAntennaColumns::station ( )
inline

Definition at line 250 of file MSAntennaColumns.h.

References station_p.

Referenced by casa::sdfiller::AntennaRecord::fill().

const ROScalarColumn<String>& casacore::MSAntennaColumns::station ( ) const
inline

Definition at line 285 of file MSAntennaColumns.h.

References casacore::ROMSAntennaColumns::station().

ScalarColumn<String>& casacore::MSAntennaColumns::type ( )
inline

Definition at line 251 of file MSAntennaColumns.h.

References type_p.

Referenced by casa::sdfiller::AntennaRecord::fill().

const ROScalarColumn<String>& casacore::MSAntennaColumns::type ( ) const
inline

Definition at line 287 of file MSAntennaColumns.h.

References casacore::ROMSAntennaColumns::type().

Member Data Documentation

ScalarColumn<Double> casacore::MSAntennaColumns::dishDiameter_p
private

Definition at line 329 of file MSAntennaColumns.h.

Referenced by dishDiameter().

ScalarQuantColumn<Double> casacore::MSAntennaColumns::dishDiameterQuant_p
private

Definition at line 347 of file MSAntennaColumns.h.

Referenced by dishDiameterQuant().

ScalarColumn<Bool> casacore::MSAntennaColumns::flagRow_p
private

Definition at line 330 of file MSAntennaColumns.h.

Referenced by flagRow().

ArrayColumn<Double> casacore::MSAntennaColumns::meanOrbit_p
private

Definition at line 338 of file MSAntennaColumns.h.

Referenced by meanOrbit().

ScalarColumn<String> casacore::MSAntennaColumns::mount_p
private

Definition at line 331 of file MSAntennaColumns.h.

Referenced by mount().

ScalarColumn<String> casacore::MSAntennaColumns::name_p
private

Definition at line 332 of file MSAntennaColumns.h.

Referenced by name().

ArrayColumn<Double> casacore::MSAntennaColumns::offset_p
private

Definition at line 333 of file MSAntennaColumns.h.

Referenced by offset().

ScalarMeasColumn<MPosition> casacore::MSAntennaColumns::offsetMeas_p
private

Definition at line 343 of file MSAntennaColumns.h.

Referenced by offsetMeas().

ArrayQuantColumn<Double> casacore::MSAntennaColumns::offsetQuant_p
private

Definition at line 348 of file MSAntennaColumns.h.

Referenced by offsetQuant().

ScalarColumn<Int> casacore::MSAntennaColumns::orbitId_p
private

Definition at line 339 of file MSAntennaColumns.h.

Referenced by orbitId().

ScalarColumn<Int> casacore::MSAntennaColumns::phasedArrayId_p
private

Definition at line 340 of file MSAntennaColumns.h.

Referenced by phasedArrayId().

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

Definition at line 334 of file MSAntennaColumns.h.

Referenced by position().

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

Definition at line 344 of file MSAntennaColumns.h.

Referenced by positionMeas().

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

Definition at line 349 of file MSAntennaColumns.h.

Referenced by positionQuant().

ScalarColumn<String> casacore::MSAntennaColumns::station_p
private

Definition at line 335 of file MSAntennaColumns.h.

Referenced by station().

ScalarColumn<String> casacore::MSAntennaColumns::type_p
private

Definition at line 336 of file MSAntennaColumns.h.

Referenced by type().


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