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

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

#include <MSProcessorColumns.h>

Inheritance diagram for casa::ROMSProcessorColumns:
casa::MSProcessorColumns

List of all members.

Public Member Functions

 ROMSProcessorColumns (const MSProcessor &msProcessor)
 Create a columns object that accesses the data in the specified Table.
 ~ROMSProcessorColumns ()
 The destructor does nothing special.
const ROScalarColumn< Bool > & flagRow () const
 Access to required columns.
const ROScalarColumn< Int > & modeId () const
const ROScalarColumn< String > & type () const
const ROScalarColumn< Int > & typeId () const
const ROScalarColumn< String > & subType () const
const ROScalarColumn< Int > & passId () const
 Read-only access to optional columns.
uInt nrow () const
 Convenience function that returns the number of rows in any of the columns.

Protected Member Functions

 ROMSProcessorColumns ()
void attach (const MSProcessor &msProcessor)

Private Member Functions

 ROMSProcessorColumns (const ROMSProcessorColumns &)
ROMSProcessorColumnsoperator= (const ROMSProcessorColumns &)
void attachOptionalCols (const MSProcessor &msField)

Private Attributes

ROScalarColumn< BoolflagRow_p
ROScalarColumn< IntmodeId_p
ROScalarColumn< Stringtype_p
ROScalarColumn< InttypeId_p
ROScalarColumn< StringsubType_p
ROScalarColumn< IntpassId_p

Detailed Description

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

Intended use:

Public interface

Review Status

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

Prerequisite

Etymology

ROMSProcessorColumns stands for Read-Only MeasurementSet Processor Table columns.

Synopsis

This class provides read-only access to the columns in the MSProcessor 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 72 of file MSProcessorColumns.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::ROMSProcessorColumns::attach ( const MSProcessor msProcessor) [protected]
void casa::ROMSProcessorColumns::attachOptionalCols ( const MSProcessor msField) [private]

Access to required columns.

Reimplemented in casa::MSProcessorColumns.

Definition at line 83 of file MSProcessorColumns.h.

References flagRow_p.

Reimplemented in casa::MSProcessorColumns.

Definition at line 84 of file MSProcessorColumns.h.

References modeId_p.

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

Definition at line 96 of file MSProcessorColumns.h.

References flagRow_p.

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

Read-only access to optional columns.

Reimplemented in casa::MSProcessorColumns.

Definition at line 92 of file MSProcessorColumns.h.

References passId_p.

Reimplemented in casa::MSProcessorColumns.

Definition at line 87 of file MSProcessorColumns.h.

References subType_p.

Reimplemented in casa::MSProcessorColumns.

Definition at line 85 of file MSProcessorColumns.h.

References type_p.

Reimplemented in casa::MSProcessorColumns.

Definition at line 86 of file MSProcessorColumns.h.

References typeId_p.


Member Data Documentation

Reimplemented in casa::MSProcessorColumns.

Definition at line 116 of file MSProcessorColumns.h.

Referenced by flagRow(), and nrow().

Reimplemented in casa::MSProcessorColumns.

Definition at line 117 of file MSProcessorColumns.h.

Referenced by modeId().

Reimplemented in casa::MSProcessorColumns.

Definition at line 122 of file MSProcessorColumns.h.

Referenced by passId().

Reimplemented in casa::MSProcessorColumns.

Definition at line 120 of file MSProcessorColumns.h.

Referenced by subType().

Reimplemented in casa::MSProcessorColumns.

Definition at line 118 of file MSProcessorColumns.h.

Referenced by type().

Reimplemented in casa::MSProcessorColumns.

Definition at line 119 of file MSProcessorColumns.h.

Referenced by typeId().


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