casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
casa::MSFieldColumns Class Reference

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

#include <MSFieldColumns.h>

Inheritance diagram for casa::MSFieldColumns:
casa::ROMSFieldColumns

List of all members.

Public Member Functions

 MSFieldColumns (MSField &msField)
 Construct from the supplied Table.
 ~MSFieldColumns ()
 The desctructor does nothing special.
ScalarColumn< String > & code ()
 Read-write access to required columns.
ArrayColumn< Double > & delayDir ()
ArrayMeasColumn< MDirection > & delayDirMeasCol ()
ScalarColumn< Bool > & flagRow ()
ScalarColumn< String > & name ()
ScalarColumn< Int > & numPoly ()
ArrayColumn< Double > & phaseDir ()
ArrayMeasColumn< MDirection > & phaseDirMeasCol ()
ArrayColumn< Double > & referenceDir ()
ArrayMeasColumn< MDirection > & referenceDirMeasCol ()
ScalarColumn< Int > & sourceId ()
ScalarColumn< Double > & time ()
ScalarQuantColumn< Double > & timeQuant ()
ScalarMeasColumn< MEpoch > & timeMeas ()
ScalarColumn< Int > & ephemerisId ()
 Read-write access to optional columns.
const ROScalarColumn< String > & code () const
 Read-only access to required columns.
const ROArrayColumn< Double > & delayDir () const
const ROArrayMeasColumn
< MDirection > & 
delayDirMeasCol () const
const ROScalarColumn< Bool > & flagRow () const
const ROScalarColumn< String > & name () const
const ROScalarColumn< Int > & numPoly () const
const ROArrayColumn< Double > & phaseDir () const
const ROArrayMeasColumn
< MDirection > & 
phaseDirMeasCol () const
const ROArrayColumn< Double > & referenceDir () const
const ROArrayMeasColumn
< MDirection > & 
referenceDirMeasCol () const
const ROScalarColumn< Int > & sourceId () const
const ROScalarColumn< Double > & time () const
const ROScalarQuantColumn
< Double > & 
timeQuant () const
const ROScalarMeasColumn
< MEpoch > & 
timeMeas () const
const ROScalarColumn< Int > & ephemerisId () const
 Read-only access to optional columns.
void setEpochRef (MEpoch::Types ref, Bool tableMustBeEmpty=True)
 set the epoch reference type for the TIME column.
void setDirectionRef (MDirection::Types ref)
 set the direction reference type for the REFERENCE_DIR, DELAY_DIR & PHASE_DIR columns.

Static Public Member Functions

static MDirection interpolateDirMeas (const Array< MDirection > &arrDir, Int numPoly, Double interTime, Double timeOrigin)
 Interpolate the direction Measure polynomial.

Protected Member Functions

 MSFieldColumns ()
void attach (MSField &msField)

Private Member Functions

 MSFieldColumns (const MSFieldColumns &)
MSFieldColumnsoperator= (const MSFieldColumns &)
void attachOptionalCols (MSField &msField)

Private Attributes

ScalarColumn< Stringname_p
 
    

ScalarColumn< Stringcode_p
ScalarColumn< Doubletime_p
ScalarColumn< IntnumPoly_p
ArrayColumn< DoubledelayDir_p
ArrayColumn< DoublephaseDir_p
ArrayColumn< DoublereferenceDir_p
ScalarColumn< IntsourceId_p
ScalarColumn< BoolflagRow_p
ScalarColumn< IntephemerisId_p
ScalarMeasColumn< MEpochtimeMeas_p
ArrayMeasColumn< MDirectiondelayDirMeas_p
ArrayMeasColumn< MDirectionphaseDirMeas_p
ArrayMeasColumn< MDirectionreferenceDirMeas_p
ScalarQuantColumn< DoubletimeQuant_p

Detailed Description

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

Intended use:

Public interface

Review Status

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

Prerequisite

Etymology

MSFieldColumns stands for MeasurementSet Field Table columns.

Synopsis

This class provides access to the columns in the MSField 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 275 of file MSFieldColumns.h.


Constructor & Destructor Documentation

Construct from the supplied Table.

The desctructor does nothing special.


Member Function Documentation

void casa::MSFieldColumns::attach ( MSField msField) [protected]
void casa::MSFieldColumns::attachOptionalCols ( MSField msField) [private]

Read-write access to required columns.

Note that the direction measures with a stored polynomial have Col() added to their name. They are better accessed via the functions that have the same name, without the Col suffix, that will do the interpolation for you. These functions are in the ROMSFieldColumns class.

Definition at line 291 of file MSFieldColumns.h.

References code_p.

Referenced by code().

const ROScalarColumn<String>& casa::MSFieldColumns::code ( ) const [inline]

Read-only access to required columns.

Reimplemented from casa::ROMSFieldColumns.

Definition at line 317 of file MSFieldColumns.h.

References code().

Definition at line 292 of file MSFieldColumns.h.

References delayDir_p.

Referenced by delayDir().

Reimplemented from casa::ROMSFieldColumns.

Definition at line 319 of file MSFieldColumns.h.

References delayDir().

Definition at line 293 of file MSFieldColumns.h.

References delayDirMeas_p.

Referenced by delayDirMeasCol().

Reimplemented from casa::ROMSFieldColumns.

Definition at line 321 of file MSFieldColumns.h.

References delayDirMeasCol().

Read-write access to optional columns.

Definition at line 312 of file MSFieldColumns.h.

References ephemerisId_p.

Referenced by ephemerisId().

Read-only access to optional columns.

Reimplemented from casa::ROMSFieldColumns.

Definition at line 349 of file MSFieldColumns.h.

References ephemerisId().

Definition at line 295 of file MSFieldColumns.h.

References flagRow_p.

Referenced by flagRow().

Reimplemented from casa::ROMSFieldColumns.

Definition at line 323 of file MSFieldColumns.h.

References flagRow().

static MDirection casa::MSFieldColumns::interpolateDirMeas ( const Array< MDirection > &  arrDir,
Int  numPoly,
Double  interTime,
Double  timeOrigin 
) [static]

Interpolate the direction Measure polynomial.

Definition at line 296 of file MSFieldColumns.h.

References name_p.

Referenced by name().

const ROScalarColumn<String>& casa::MSFieldColumns::name ( ) const [inline]

Reimplemented from casa::ROMSFieldColumns.

Definition at line 325 of file MSFieldColumns.h.

References name().

Definition at line 297 of file MSFieldColumns.h.

References numPoly_p.

Referenced by numPoly().

const ROScalarColumn<Int>& casa::MSFieldColumns::numPoly ( ) const [inline]

Reimplemented from casa::ROMSFieldColumns.

Definition at line 327 of file MSFieldColumns.h.

References numPoly().

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

Definition at line 298 of file MSFieldColumns.h.

References phaseDir_p.

Referenced by phaseDir().

Reimplemented from casa::ROMSFieldColumns.

Definition at line 329 of file MSFieldColumns.h.

References phaseDir().

Definition at line 299 of file MSFieldColumns.h.

References phaseDirMeas_p.

Referenced by phaseDirMeasCol().

Reimplemented from casa::ROMSFieldColumns.

Definition at line 331 of file MSFieldColumns.h.

References phaseDirMeasCol().

Definition at line 301 of file MSFieldColumns.h.

References referenceDir_p.

Referenced by referenceDir().

Reimplemented from casa::ROMSFieldColumns.

Definition at line 333 of file MSFieldColumns.h.

References referenceDir().

Definition at line 302 of file MSFieldColumns.h.

References referenceDirMeas_p.

Referenced by referenceDirMeasCol().

Reimplemented from casa::ROMSFieldColumns.

Definition at line 335 of file MSFieldColumns.h.

References referenceDirMeasCol().

set the direction reference type for the REFERENCE_DIR, DELAY_DIR & PHASE_DIR columns.

This can only be done when the table has no rows. Trying to do so at other times will throw an exception.

void casa::MSFieldColumns::setEpochRef ( MEpoch::Types  ref,
Bool  tableMustBeEmpty = True 
)

set the epoch reference 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;

Definition at line 304 of file MSFieldColumns.h.

References sourceId_p.

Referenced by sourceId().

Reimplemented from casa::ROMSFieldColumns.

Definition at line 337 of file MSFieldColumns.h.

References sourceId().

Definition at line 305 of file MSFieldColumns.h.

References time_p.

Referenced by time().

const ROScalarColumn<Double>& casa::MSFieldColumns::time ( ) const [inline]

Reimplemented from casa::ROMSFieldColumns.

Definition at line 339 of file MSFieldColumns.h.

References time().

Definition at line 307 of file MSFieldColumns.h.

References timeMeas_p.

Referenced by timeMeas().

Reimplemented from casa::ROMSFieldColumns.

Definition at line 343 of file MSFieldColumns.h.

References timeMeas().

Definition at line 306 of file MSFieldColumns.h.

References timeQuant_p.

Referenced by timeQuant().

Reimplemented from casa::ROMSFieldColumns.

Definition at line 341 of file MSFieldColumns.h.

References timeQuant().


Member Data Documentation

Reimplemented from casa::ROMSFieldColumns.

Definition at line 395 of file MSFieldColumns.h.

Referenced by code().

Reimplemented from casa::ROMSFieldColumns.

Definition at line 398 of file MSFieldColumns.h.

Referenced by delayDir().

Reimplemented from casa::ROMSFieldColumns.

Definition at line 408 of file MSFieldColumns.h.

Referenced by delayDirMeasCol().

Reimplemented from casa::ROMSFieldColumns.

Definition at line 404 of file MSFieldColumns.h.

Referenced by ephemerisId().

Reimplemented from casa::ROMSFieldColumns.

Definition at line 402 of file MSFieldColumns.h.

Referenced by flagRow().

    

Reimplemented from casa::ROMSFieldColumns.

Definition at line 394 of file MSFieldColumns.h.

Referenced by name().

Reimplemented from casa::ROMSFieldColumns.

Definition at line 397 of file MSFieldColumns.h.

Referenced by numPoly().

Reimplemented from casa::ROMSFieldColumns.

Definition at line 399 of file MSFieldColumns.h.

Referenced by phaseDir().

Reimplemented from casa::ROMSFieldColumns.

Definition at line 409 of file MSFieldColumns.h.

Referenced by phaseDirMeasCol().

Reimplemented from casa::ROMSFieldColumns.

Definition at line 400 of file MSFieldColumns.h.

Referenced by referenceDir().

Reimplemented from casa::ROMSFieldColumns.

Definition at line 410 of file MSFieldColumns.h.

Referenced by referenceDirMeasCol().

Reimplemented from casa::ROMSFieldColumns.

Definition at line 401 of file MSFieldColumns.h.

Referenced by sourceId().

Reimplemented from casa::ROMSFieldColumns.

Definition at line 396 of file MSFieldColumns.h.

Referenced by time().

Reimplemented from casa::ROMSFieldColumns.

Definition at line 407 of file MSFieldColumns.h.

Referenced by timeMeas().

Reimplemented from casa::ROMSFieldColumns.

Definition at line 413 of file MSFieldColumns.h.

Referenced by timeQuant().


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