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

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

#include <MSDataDescColumns.h>

Inheritance diagram for casa::MSDataDescColumns:
casa::ROMSDataDescColumns

List of all members.

Public Member Functions

 MSDataDescColumns (MSDataDescription &msDataDesc)
 Create a columns object that accesses the data in the specified Table.
 ~MSDataDescColumns ()
 The destructor does nothing special.
ScalarColumn< Bool > & flagRow ()
 Read-write access to required columns.
ScalarColumn< Int > & polarizationId ()
ScalarColumn< Int > & spectralWindowId ()
ScalarColumn< Int > & lagId ()
 read-write access to optional columns
const ROScalarColumn< Bool > & flagRow () const
 Read-only access to required columns.
const ROScalarColumn< Int > & polarizationId () const
const ROScalarColumn< Int > & spectralWindowId () const
const ROScalarColumn< Int > & lagId () const
 Read-only access to optional columns.

Protected Member Functions

 MSDataDescColumns ()
 
   

void attach (MSDataDescription &msDataDesc)

Private Member Functions

 MSDataDescColumns (const MSDataDescColumns &)
MSDataDescColumnsoperator= (const MSDataDescColumns &)
void attachOptionalCols (MSDataDescription &msDataDesc)

Private Attributes

ScalarColumn< BoolflagRow_p
ScalarColumn< IntpolarizationId_p
ScalarColumn< IntspectralWindowId_p
ScalarColumn< IntlagId_p

Detailed Description

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

Intended use:

Public interface

Review Status

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

Prerequisite

Etymology

MSDataDescColumns stands for MeasurementSet DataDescription Table columns.

Synopsis

This class provides access to the columns in the MSDataDesc 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.
Warning: The Table that is used to construct this class must not be destroyed (or go out of scope) before this class does; Otherwise the scalar and array columns use by this class will be left dangling;

Motivation

See MSColumns for the motivation.

Definition at line 168 of file MSDataDescColumns.h.


Constructor & Destructor Documentation

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

The destructor does nothing special.

   


Member Function Documentation

void casa::MSDataDescColumns::attach ( MSDataDescription msDataDesc) [protected]

Read-write access to required columns.

Definition at line 179 of file MSDataDescColumns.h.

References flagRow_p.

Referenced by flagRow().

Read-only access to required columns.

Reimplemented from casa::ROMSDataDescColumns.

Definition at line 191 of file MSDataDescColumns.h.

References flagRow().

read-write access to optional columns

Definition at line 186 of file MSDataDescColumns.h.

References lagId_p.

Referenced by lagId().

Read-only access to optional columns.

Reimplemented from casa::ROMSDataDescColumns.

Definition at line 201 of file MSDataDescColumns.h.

References lagId().

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

Definition at line 180 of file MSDataDescColumns.h.

References polarizationId_p.

Referenced by polarizationId().

Reimplemented from casa::ROMSDataDescColumns.

Definition at line 193 of file MSDataDescColumns.h.

References polarizationId().

Definition at line 181 of file MSDataDescColumns.h.

References spectralWindowId_p.

Referenced by spectralWindowId().

Reimplemented from casa::ROMSDataDescColumns.

Definition at line 195 of file MSDataDescColumns.h.

References spectralWindowId().


Member Data Documentation

Reimplemented from casa::ROMSDataDescColumns.

Definition at line 223 of file MSDataDescColumns.h.

Referenced by flagRow().

Reimplemented from casa::ROMSDataDescColumns.

Definition at line 227 of file MSDataDescColumns.h.

Referenced by lagId().

Reimplemented from casa::ROMSDataDescColumns.

Definition at line 224 of file MSDataDescColumns.h.

Referenced by polarizationId().

Reimplemented from casa::ROMSDataDescColumns.

Definition at line 225 of file MSDataDescColumns.h.

Referenced by spectralWindowId().


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