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

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

#include <CTColumns.h>

Inheritance diagram for casa::ROCTColumns:
casa::ROCTMainColumns

List of all members.

Public Member Functions

 ROCTColumns (const NewCalTable &caltable)
 Create a columns object that accesses the data in the specified MS.
 ~ROCTColumns ()
 The destructor does nothing special.
const ROCTObservationColumnsobservation () const
 Access to required subtables.
const ROCTAntennaColumnsantenna () const
const ROCTFieldColumnsfield () const
const ROCTHistoryColumnshistory () const
const ROCTSpWindowColumnsspectralWindow () const

Private Attributes

ROCTObservationColumns observation_p
 Access to subtables.
ROCTAntennaColumns antenna_p
ROCTFieldColumns field_p
ROCTHistoryColumns history_p
ROCTSpWindowColumns spectralWindow_p

Friends

class NewCalTable
 Access to optional subtables.

Detailed Description

A class to provide easy read-only access to new CalTable columns.

Intended use:

Public interface

Prerequisite

Etymology

ROCTColumns stands for Read-Only NewCalTable Table columns.

Synopsis

This class provides read-only access to the columns in the NewCalTable, similar to the ROMSColumns for MeasurementSet. 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.

Example

    // use as follows
    NewCalTable newcalt("mynewcalt");
    RONCTColumns nctc(newcalt);
    // show time from row 5
    cout << nctc.time()(5);
    // show name of antenna on row 3 in antenna table
    cout << nctc.antenna().name();

Motivation

See CTColumns for the motivation.

Definition at line 92 of file CTColumns.h.


Constructor & Destructor Documentation

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

The destructor does nothing special.


Member Function Documentation

Definition at line 104 of file CTColumns.h.

References antenna_p.

const ROCTFieldColumns& casa::ROCTColumns::field ( ) const [inline]

Definition at line 105 of file CTColumns.h.

References field_p.

Definition at line 106 of file CTColumns.h.

References history_p.

Access to required subtables.

Definition at line 103 of file CTColumns.h.

References observation_p.

Definition at line 107 of file CTColumns.h.

References spectralWindow_p.


Friends And Related Function Documentation

friend class NewCalTable [friend]

Access to optional subtables.

   

Definition at line 116 of file CTColumns.h.


Member Data Documentation

Definition at line 120 of file CTColumns.h.

Referenced by antenna().

Definition at line 121 of file CTColumns.h.

Referenced by field().

Definition at line 122 of file CTColumns.h.

Referenced by history().

Access to subtables.

Definition at line 119 of file CTColumns.h.

Referenced by observation().

Definition at line 123 of file CTColumns.h.

Referenced by spectralWindow().


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