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

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

#include <MSSourceColumns.h>

Inheritance diagram for casacore::ROMSSourceColumns:
casacore::MSSourceColumns

Public Member Functions

 ROMSSourceColumns (const MSSource &msSource)
 Construct from the supplied Table. More...
 
 ~ROMSSourceColumns ()
 The destructor does nothing special. More...
 
Bool isNull () const
 Is this object defined? (MSSource table is optional) More...
 
const ROScalarColumn< Int > & calibrationGroup () const
 Access to required columns. More...
 
const ROScalarColumn< String > & code () const
 
const ROArrayColumn< Double > & direction () const
 
const ROArrayQuantColumn
< Double > & 
directionQuant () const
 
const ROScalarMeasColumn
< MDirection > & 
directionMeas () const
 
const ROScalarColumn< Double > & interval () const
 
const ROScalarQuantColumn
< Double > & 
intervalQuant () const
 
const ROScalarColumn< String > & name () const
 
const ROScalarColumn< Int > & numLines () const
 
const ROArrayColumn< Double > & properMotion () const
 
const ROArrayQuantColumn
< Double > & 
properMotionQuant () const
 
const ROScalarColumn< Int > & sourceId () const
 
const ROScalarColumn< Int > & spectralWindowId () const
 
const ROScalarColumn< Double > & time () const
 
const ROScalarQuantColumn
< Double > & 
timeQuant () const
 
const ROScalarMeasColumn
< MEpoch > & 
timeMeas () const
 
const ROArrayColumn< Double > & position () const
 Access to optional columns. More...
 
const ROArrayQuantColumn
< Double > & 
positionQuant () const
 
const ROScalarMeasColumn
< MPosition > & 
positionMeas () const
 
const ROScalarColumn< Int > & pulsarId () const
 
const ROArrayColumn< Double > & restFrequency () const
 
const ROArrayQuantColumn
< Double > & 
restFrequencyQuant () const
 
const ROArrayMeasColumn
< MFrequency > & 
restFrequencyMeas () const
 
const ROScalarColumn
< TableRecord > & 
sourceModel () const
 
const ROArrayColumn< Double > & sysvel () const
 
const ROArrayQuantColumn
< Double > & 
sysvelQuant () const
 
const ROArrayMeasColumn
< MRadialVelocity > & 
sysvelMeas () const
 
const ROArrayColumn< String > & transition () const
 
uInt nrow () const
 Convenience function that returns the number of rows in any of the columns. More...
 

Protected Member Functions

 ROMSSourceColumns ()
 
void attach (const MSSource &msSource)
 

Private Member Functions

 ROMSSourceColumns (const ROMSSourceColumns &)
 
ROMSSourceColumnsoperator= (const ROMSSourceColumns &)
 
void attachOptionalCols (const MSSource &msSource)
 

Private Attributes

Bool isNull_p
 
ROScalarColumn< IntcalibrationGroup_p
 
ROScalarColumn< Stringcode_p
 
ROArrayColumn< Doubledirection_p
 
ROScalarColumn< Doubleinterval_p
 
ROScalarColumn< Stringname_p
 
ROScalarColumn< IntnumLines_p
 
ROArrayColumn< DoubleproperMotion_p
 
ROScalarColumn< IntsourceId_p
 
ROScalarColumn< IntspectralWindowId_p
 
ROScalarColumn< Doubletime_p
 
ROArrayColumn< Doubleposition_p
 
ROScalarColumn< IntpulsarId_p
 
ROArrayColumn< DoublerestFrequency_p
 
ROScalarColumn< TableRecordsourceModel_p
 
ROArrayColumn< Doublesysvel_p
 
ROArrayColumn< Stringtransition_p
 
ROScalarMeasColumn< MDirectiondirectionMeas_p
 
ROScalarMeasColumn< MEpochtimeMeas_p
 
ROScalarMeasColumn< MPositionpositionMeas_p
 
ROArrayMeasColumn< MFrequencyrestFrequencyMeas_p
 
ROArrayMeasColumn
< MRadialVelocity
sysvelMeas_p
 
ROArrayQuantColumn< DoubledirectionQuant_p
 
ROScalarQuantColumn< DoubleintervalQuant_p
 
ROArrayQuantColumn< DoubleproperMotionQuant_p
 
ROScalarQuantColumn< DoubletimeQuant_p
 
ROArrayQuantColumn< DoublepositionQuant_p
 
ROArrayQuantColumn< DoublerestFrequencyQuant_p
 
ROArrayQuantColumn< DoublesysvelQuant_p
 

Detailed Description

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

Intended use:

Public interface

Review Status

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

Prerequisite

Etymology

ROMSSourceColumns stands for Read-Only MeasurementSet Source Table columns.

Synopsis

This class provides read-only access to the columns in the MSSource 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 88 of file MSSourceColumns.h.

Constructor & Destructor Documentation

casacore::ROMSSourceColumns::ROMSSourceColumns ( const MSSource msSource)

Construct from the supplied Table.

casacore::ROMSSourceColumns::~ROMSSourceColumns ( )

The destructor does nothing special.

casacore::ROMSSourceColumns::ROMSSourceColumns ( )
protected
casacore::ROMSSourceColumns::ROMSSourceColumns ( const ROMSSourceColumns )
private

Member Function Documentation

void casacore::ROMSSourceColumns::attach ( const MSSource msSource)
protected
void casacore::ROMSSourceColumns::attachOptionalCols ( const MSSource msSource)
private
const ROScalarColumn<Int>& casacore::ROMSSourceColumns::calibrationGroup ( ) const
inline

Access to required columns.

Definition at line 102 of file MSSourceColumns.h.

References calibrationGroup_p.

Referenced by casacore::MSSourceColumns::calibrationGroup().

const ROScalarColumn<String>& casacore::ROMSSourceColumns::code ( ) const
inline

Definition at line 104 of file MSSourceColumns.h.

References code_p.

Referenced by casacore::MSSourceColumns::code().

const ROArrayColumn<Double>& casacore::ROMSSourceColumns::direction ( ) const
inline

Definition at line 105 of file MSSourceColumns.h.

References direction_p.

Referenced by casacore::MSSourceColumns::direction().

const ROScalarMeasColumn<MDirection>& casacore::ROMSSourceColumns::directionMeas ( ) const
inline

Definition at line 108 of file MSSourceColumns.h.

References directionMeas_p.

Referenced by casacore::MSSourceColumns::directionMeas().

const ROArrayQuantColumn<Double>& casacore::ROMSSourceColumns::directionQuant ( ) const
inline

Definition at line 106 of file MSSourceColumns.h.

References directionQuant_p.

Referenced by casacore::MSSourceColumns::directionQuant().

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

Definition at line 110 of file MSSourceColumns.h.

References interval_p.

Referenced by casacore::MSSourceColumns::interval().

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

Definition at line 111 of file MSSourceColumns.h.

References intervalQuant_p.

Referenced by casacore::MSSourceColumns::intervalQuant().

Bool casacore::ROMSSourceColumns::isNull ( ) const
inline

Is this object defined? (MSSource table is optional)

Definition at line 98 of file MSSourceColumns.h.

References isNull_p.

Referenced by nrow().

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

Definition at line 113 of file MSSourceColumns.h.

References name_p.

Referenced by casacore::MSSourceColumns::name().

uInt casacore::ROMSSourceColumns::nrow ( ) const
inline

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

Returns zero if the object is null.

Definition at line 150 of file MSSourceColumns.h.

References calibrationGroup_p, and isNull().

Referenced by casa::sdfiller::SourceRecord::add(), and casa::sdfiller::SourceRecord::fill().

const ROScalarColumn<Int>& casacore::ROMSSourceColumns::numLines ( ) const
inline

Definition at line 114 of file MSSourceColumns.h.

References numLines_p.

Referenced by casacore::MSSourceColumns::numLines().

ROMSSourceColumns& casacore::ROMSSourceColumns::operator= ( const ROMSSourceColumns )
private
const ROArrayColumn<Double>& casacore::ROMSSourceColumns::position ( ) const
inline

Access to optional columns.

Definition at line 128 of file MSSourceColumns.h.

References position_p.

Referenced by casacore::MSSourceColumns::position().

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

Definition at line 131 of file MSSourceColumns.h.

References positionMeas_p.

Referenced by casacore::MSSourceColumns::positionMeas().

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

Definition at line 129 of file MSSourceColumns.h.

References positionQuant_p.

Referenced by casacore::MSSourceColumns::positionQuant().

const ROArrayColumn<Double>& casacore::ROMSSourceColumns::properMotion ( ) const
inline

Definition at line 115 of file MSSourceColumns.h.

References properMotion_p.

Referenced by casacore::MSSourceColumns::properMotion().

const ROArrayQuantColumn<Double>& casacore::ROMSSourceColumns::properMotionQuant ( ) const
inline

Definition at line 116 of file MSSourceColumns.h.

References properMotionQuant_p.

Referenced by casacore::MSSourceColumns::properMotionQuant().

const ROScalarColumn<Int>& casacore::ROMSSourceColumns::pulsarId ( ) const
inline

Definition at line 133 of file MSSourceColumns.h.

References pulsarId_p.

Referenced by casacore::MSSourceColumns::pulsarId().

const ROArrayColumn<Double>& casacore::ROMSSourceColumns::restFrequency ( ) const
inline

Definition at line 134 of file MSSourceColumns.h.

References restFrequency_p.

Referenced by casacore::MSSourceColumns::restFrequency().

const ROArrayMeasColumn<MFrequency>& casacore::ROMSSourceColumns::restFrequencyMeas ( ) const
inline

Definition at line 137 of file MSSourceColumns.h.

References restFrequencyMeas_p.

Referenced by casacore::MSSourceColumns::restFrequencyMeas().

const ROArrayQuantColumn<Double>& casacore::ROMSSourceColumns::restFrequencyQuant ( ) const
inline

Definition at line 135 of file MSSourceColumns.h.

References restFrequencyQuant_p.

Referenced by casacore::MSSourceColumns::restFrequencyQuant().

const ROScalarColumn<Int>& casacore::ROMSSourceColumns::sourceId ( ) const
inline

Definition at line 118 of file MSSourceColumns.h.

References sourceId_p.

Referenced by casacore::MSSourceColumns::sourceId().

const ROScalarColumn<TableRecord>& casacore::ROMSSourceColumns::sourceModel ( ) const
inline

Definition at line 139 of file MSSourceColumns.h.

References sourceModel_p.

Referenced by casacore::MSSourceColumns::sourceModel().

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

Definition at line 119 of file MSSourceColumns.h.

References spectralWindowId_p.

Referenced by casacore::MSSourceColumns::spectralWindowId().

const ROArrayColumn<Double>& casacore::ROMSSourceColumns::sysvel ( ) const
inline

Definition at line 141 of file MSSourceColumns.h.

References sysvel_p.

Referenced by casacore::MSSourceColumns::sysvel().

const ROArrayMeasColumn<MRadialVelocity>& casacore::ROMSSourceColumns::sysvelMeas ( ) const
inline

Definition at line 143 of file MSSourceColumns.h.

References sysvelMeas_p.

Referenced by casacore::MSSourceColumns::sysvelMeas().

const ROArrayQuantColumn<Double>& casacore::ROMSSourceColumns::sysvelQuant ( ) const
inline

Definition at line 142 of file MSSourceColumns.h.

References sysvelQuant_p.

Referenced by casacore::MSSourceColumns::sysvelQuant().

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

Definition at line 121 of file MSSourceColumns.h.

References time_p.

Referenced by casacore::MSSourceColumns::time().

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

Definition at line 123 of file MSSourceColumns.h.

References timeMeas_p.

Referenced by casacore::MSSourceColumns::timeMeas().

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

Definition at line 122 of file MSSourceColumns.h.

References timeQuant_p.

Referenced by casacore::MSSourceColumns::timeQuant().

const ROArrayColumn<String>& casacore::ROMSSourceColumns::transition ( ) const
inline

Definition at line 145 of file MSSourceColumns.h.

References transition_p.

Referenced by casacore::MSSourceColumns::transition().

Member Data Documentation

ROScalarColumn<Int> casacore::ROMSSourceColumns::calibrationGroup_p
private

Definition at line 173 of file MSSourceColumns.h.

Referenced by calibrationGroup(), and nrow().

ROScalarColumn<String> casacore::ROMSSourceColumns::code_p
private

Definition at line 174 of file MSSourceColumns.h.

Referenced by code().

ROArrayColumn<Double> casacore::ROMSSourceColumns::direction_p
private

Definition at line 175 of file MSSourceColumns.h.

Referenced by direction().

ROScalarMeasColumn<MDirection> casacore::ROMSSourceColumns::directionMeas_p
private

Definition at line 192 of file MSSourceColumns.h.

Referenced by directionMeas().

ROArrayQuantColumn<Double> casacore::ROMSSourceColumns::directionQuant_p
private

Definition at line 200 of file MSSourceColumns.h.

Referenced by directionQuant().

ROScalarColumn<Double> casacore::ROMSSourceColumns::interval_p
private

Definition at line 176 of file MSSourceColumns.h.

Referenced by interval().

ROScalarQuantColumn<Double> casacore::ROMSSourceColumns::intervalQuant_p
private

Definition at line 201 of file MSSourceColumns.h.

Referenced by intervalQuant().

Bool casacore::ROMSSourceColumns::isNull_p
private

Definition at line 170 of file MSSourceColumns.h.

Referenced by isNull().

ROScalarColumn<String> casacore::ROMSSourceColumns::name_p
private

Definition at line 177 of file MSSourceColumns.h.

Referenced by name().

ROScalarColumn<Int> casacore::ROMSSourceColumns::numLines_p
private

Definition at line 178 of file MSSourceColumns.h.

Referenced by numLines().

ROArrayColumn<Double> casacore::ROMSSourceColumns::position_p
private

Definition at line 184 of file MSSourceColumns.h.

Referenced by position().

ROScalarMeasColumn<MPosition> casacore::ROMSSourceColumns::positionMeas_p
private

Definition at line 195 of file MSSourceColumns.h.

Referenced by positionMeas().

ROArrayQuantColumn<Double> casacore::ROMSSourceColumns::positionQuant_p
private

Definition at line 205 of file MSSourceColumns.h.

Referenced by positionQuant().

ROArrayColumn<Double> casacore::ROMSSourceColumns::properMotion_p
private

Definition at line 179 of file MSSourceColumns.h.

Referenced by properMotion().

ROArrayQuantColumn<Double> casacore::ROMSSourceColumns::properMotionQuant_p
private

Definition at line 202 of file MSSourceColumns.h.

Referenced by properMotionQuant().

ROScalarColumn<Int> casacore::ROMSSourceColumns::pulsarId_p
private

Definition at line 185 of file MSSourceColumns.h.

Referenced by pulsarId().

ROArrayColumn<Double> casacore::ROMSSourceColumns::restFrequency_p
private

Definition at line 186 of file MSSourceColumns.h.

Referenced by restFrequency().

ROArrayMeasColumn<MFrequency> casacore::ROMSSourceColumns::restFrequencyMeas_p
private

Definition at line 196 of file MSSourceColumns.h.

Referenced by restFrequencyMeas().

ROArrayQuantColumn<Double> casacore::ROMSSourceColumns::restFrequencyQuant_p
private

Definition at line 206 of file MSSourceColumns.h.

Referenced by restFrequencyQuant().

ROScalarColumn<Int> casacore::ROMSSourceColumns::sourceId_p
private

Definition at line 180 of file MSSourceColumns.h.

Referenced by sourceId().

ROScalarColumn<TableRecord> casacore::ROMSSourceColumns::sourceModel_p
private

Definition at line 187 of file MSSourceColumns.h.

Referenced by sourceModel().

ROScalarColumn<Int> casacore::ROMSSourceColumns::spectralWindowId_p
private

Definition at line 181 of file MSSourceColumns.h.

Referenced by spectralWindowId().

ROArrayColumn<Double> casacore::ROMSSourceColumns::sysvel_p
private

Definition at line 188 of file MSSourceColumns.h.

Referenced by sysvel().

ROArrayMeasColumn<MRadialVelocity> casacore::ROMSSourceColumns::sysvelMeas_p
private

Definition at line 197 of file MSSourceColumns.h.

Referenced by sysvelMeas().

ROArrayQuantColumn<Double> casacore::ROMSSourceColumns::sysvelQuant_p
private

Definition at line 207 of file MSSourceColumns.h.

Referenced by sysvelQuant().

ROScalarColumn<Double> casacore::ROMSSourceColumns::time_p
private

Definition at line 182 of file MSSourceColumns.h.

Referenced by time().

ROScalarMeasColumn<MEpoch> casacore::ROMSSourceColumns::timeMeas_p
private

Definition at line 193 of file MSSourceColumns.h.

Referenced by timeMeas().

ROScalarQuantColumn<Double> casacore::ROMSSourceColumns::timeQuant_p
private

Definition at line 203 of file MSSourceColumns.h.

Referenced by timeQuant().

ROArrayColumn<String> casacore::ROMSSourceColumns::transition_p
private

Definition at line 189 of file MSSourceColumns.h.

Referenced by transition().


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