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

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

#include <MSSourceColumns.h>

Inheritance diagram for casa::ROMSSourceColumns:
casa::MSSourceColumns

List of all members.

Public Member Functions

 ROMSSourceColumns (const MSSource &msSource)
 Construct from the supplied Table.
 ~ROMSSourceColumns ()
 The destructor does nothing special.
Bool isNull () const
 Is this object defined? (MSSource table is optional)
const ROScalarColumn< Int > & calibrationGroup () const
 Access to required columns.
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.
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.

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

Construct from the supplied Table.

The destructor does nothing special.


Member Function Documentation

void casa::ROMSSourceColumns::attach ( const MSSource msSource) [protected]
void casa::ROMSSourceColumns::attachOptionalCols ( const MSSource msSource) [private]

Access to required columns.

Reimplemented in casa::MSSourceColumns.

Definition at line 102 of file MSSourceColumns.h.

References calibrationGroup_p.

Reimplemented in casa::MSSourceColumns.

Definition at line 104 of file MSSourceColumns.h.

References code_p.

Reimplemented in casa::MSSourceColumns.

Definition at line 105 of file MSSourceColumns.h.

References direction_p.

Reimplemented in casa::MSSourceColumns.

Definition at line 108 of file MSSourceColumns.h.

References directionMeas_p.

Reimplemented in casa::MSSourceColumns.

Definition at line 106 of file MSSourceColumns.h.

References directionQuant_p.

Reimplemented in casa::MSSourceColumns.

Definition at line 110 of file MSSourceColumns.h.

References interval_p.

Reimplemented in casa::MSSourceColumns.

Definition at line 111 of file MSSourceColumns.h.

References intervalQuant_p.

Is this object defined? (MSSource table is optional)

Definition at line 98 of file MSSourceColumns.h.

References isNull_p.

Referenced by nrow().

Reimplemented in casa::MSSourceColumns.

Definition at line 113 of file MSSourceColumns.h.

References name_p.

uInt casa::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().

Reimplemented in casa::MSSourceColumns.

Definition at line 114 of file MSSourceColumns.h.

References numLines_p.

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

Access to optional columns.

Reimplemented in casa::MSSourceColumns.

Definition at line 128 of file MSSourceColumns.h.

References position_p.

Reimplemented in casa::MSSourceColumns.

Definition at line 131 of file MSSourceColumns.h.

References positionMeas_p.

Reimplemented in casa::MSSourceColumns.

Definition at line 129 of file MSSourceColumns.h.

References positionQuant_p.

Reimplemented in casa::MSSourceColumns.

Definition at line 115 of file MSSourceColumns.h.

References properMotion_p.

Reimplemented in casa::MSSourceColumns.

Definition at line 116 of file MSSourceColumns.h.

References properMotionQuant_p.

Reimplemented in casa::MSSourceColumns.

Definition at line 133 of file MSSourceColumns.h.

References pulsarId_p.

Reimplemented in casa::MSSourceColumns.

Definition at line 134 of file MSSourceColumns.h.

References restFrequency_p.

Reimplemented in casa::MSSourceColumns.

Definition at line 137 of file MSSourceColumns.h.

References restFrequencyMeas_p.

Reimplemented in casa::MSSourceColumns.

Definition at line 135 of file MSSourceColumns.h.

References restFrequencyQuant_p.

Reimplemented in casa::MSSourceColumns.

Definition at line 118 of file MSSourceColumns.h.

References sourceId_p.

Reimplemented in casa::MSSourceColumns.

Definition at line 139 of file MSSourceColumns.h.

References sourceModel_p.

Reimplemented in casa::MSSourceColumns.

Definition at line 119 of file MSSourceColumns.h.

References spectralWindowId_p.

Reimplemented in casa::MSSourceColumns.

Definition at line 141 of file MSSourceColumns.h.

References sysvel_p.

Reimplemented in casa::MSSourceColumns.

Definition at line 143 of file MSSourceColumns.h.

References sysvelMeas_p.

Reimplemented in casa::MSSourceColumns.

Definition at line 142 of file MSSourceColumns.h.

References sysvelQuant_p.

Reimplemented in casa::MSSourceColumns.

Definition at line 121 of file MSSourceColumns.h.

References time_p.

Reimplemented in casa::MSSourceColumns.

Definition at line 123 of file MSSourceColumns.h.

References timeMeas_p.

Reimplemented in casa::MSSourceColumns.

Definition at line 122 of file MSSourceColumns.h.

References timeQuant_p.

Reimplemented in casa::MSSourceColumns.

Definition at line 145 of file MSSourceColumns.h.

References transition_p.


Member Data Documentation

Reimplemented in casa::MSSourceColumns.

Definition at line 173 of file MSSourceColumns.h.

Referenced by calibrationGroup(), and nrow().

Reimplemented in casa::MSSourceColumns.

Definition at line 174 of file MSSourceColumns.h.

Referenced by code().

Reimplemented in casa::MSSourceColumns.

Definition at line 175 of file MSSourceColumns.h.

Referenced by direction().

Reimplemented in casa::MSSourceColumns.

Definition at line 192 of file MSSourceColumns.h.

Referenced by directionMeas().

Reimplemented in casa::MSSourceColumns.

Definition at line 200 of file MSSourceColumns.h.

Referenced by directionQuant().

Reimplemented in casa::MSSourceColumns.

Definition at line 176 of file MSSourceColumns.h.

Referenced by interval().

Reimplemented in casa::MSSourceColumns.

Definition at line 201 of file MSSourceColumns.h.

Referenced by intervalQuant().

Definition at line 170 of file MSSourceColumns.h.

Referenced by isNull().

Reimplemented in casa::MSSourceColumns.

Definition at line 177 of file MSSourceColumns.h.

Referenced by name().

Reimplemented in casa::MSSourceColumns.

Definition at line 178 of file MSSourceColumns.h.

Referenced by numLines().

Reimplemented in casa::MSSourceColumns.

Definition at line 184 of file MSSourceColumns.h.

Referenced by position().

Reimplemented in casa::MSSourceColumns.

Definition at line 195 of file MSSourceColumns.h.

Referenced by positionMeas().

Reimplemented in casa::MSSourceColumns.

Definition at line 205 of file MSSourceColumns.h.

Referenced by positionQuant().

Reimplemented in casa::MSSourceColumns.

Definition at line 179 of file MSSourceColumns.h.

Referenced by properMotion().

Reimplemented in casa::MSSourceColumns.

Definition at line 202 of file MSSourceColumns.h.

Referenced by properMotionQuant().

Reimplemented in casa::MSSourceColumns.

Definition at line 185 of file MSSourceColumns.h.

Referenced by pulsarId().

Reimplemented in casa::MSSourceColumns.

Definition at line 186 of file MSSourceColumns.h.

Referenced by restFrequency().

Reimplemented in casa::MSSourceColumns.

Definition at line 196 of file MSSourceColumns.h.

Referenced by restFrequencyMeas().

Reimplemented in casa::MSSourceColumns.

Definition at line 206 of file MSSourceColumns.h.

Referenced by restFrequencyQuant().

Reimplemented in casa::MSSourceColumns.

Definition at line 180 of file MSSourceColumns.h.

Referenced by sourceId().

Reimplemented in casa::MSSourceColumns.

Definition at line 187 of file MSSourceColumns.h.

Referenced by sourceModel().

Reimplemented in casa::MSSourceColumns.

Definition at line 181 of file MSSourceColumns.h.

Referenced by spectralWindowId().

Reimplemented in casa::MSSourceColumns.

Definition at line 188 of file MSSourceColumns.h.

Referenced by sysvel().

Reimplemented in casa::MSSourceColumns.

Definition at line 197 of file MSSourceColumns.h.

Referenced by sysvelMeas().

Reimplemented in casa::MSSourceColumns.

Definition at line 207 of file MSSourceColumns.h.

Referenced by sysvelQuant().

Reimplemented in casa::MSSourceColumns.

Definition at line 182 of file MSSourceColumns.h.

Referenced by time().

Reimplemented in casa::MSSourceColumns.

Definition at line 193 of file MSSourceColumns.h.

Referenced by timeMeas().

Reimplemented in casa::MSSourceColumns.

Definition at line 203 of file MSSourceColumns.h.

Referenced by timeQuant().

Reimplemented in casa::MSSourceColumns.

Definition at line 189 of file MSSourceColumns.h.

Referenced by transition().


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