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

MSInterface: A specialization of MSSelectableTable for accessing MS. More...

#include <MSSelectableTable.h>

Inheritance diagram for casa::MSInterface:
casa::MSSelectableTable

List of all members.

Public Member Functions

 MSInterface ()
 MSInterface (const Table &table)
virtual ~MSInterface ()
virtual const MSAntennaantenna ()
virtual const MSFieldfield ()
virtual const MSSpectralWindowspectralWindow ()
virtual const MSDataDescriptiondataDescription ()
virtual const MSObservationobservation ()
virtual String columnName (MSMainEnums::PredefinedColumns nameEnum)
virtual Bool isMS ()
virtual const MeasurementSetasMS ()
virtual MSSelectableMainColumnmainColumns ()

Private Attributes

MSMainColInterfacemsMainCols_p

Detailed Description

MSInterface: A specialization of MSSelectableTable for accessing MS.

Intended use:

Public interface

Etymology

From "ms" and "interface".

Synopsis

A class that can be passed around as MSSelectableTable, with most of the methods overloaded to work with the underlaying MS.

Example

    //
    // Fill in the expression in the various strings that are passed for
    // parsing to the MSSelection object later.
    //
    String fieldStr,timeStr,spwStr,baselineStr,
      uvdistStr,taqlStr,scanStr,arrayStr, polnStr,stateObsModeStr,
      observationStr;
    baselineStr="1&2";
    timeStr="*+0:10:0";
    fieldStr="CygA*";
    //
    // Instantiate the MS and the MSInterface objects.
    //
    MS ms(MSName),selectedMS(ms);
    MSInterface msInterface(ms);
    //
    // Setup the MSSelection thingi
    //
    MSSelection msSelection;
   
    msSelection.reset(msInterface,MSSelection::PARSE_NOW,
                    timeStr,baselineStr,fieldStr,spwStr,
                    uvdistStr,taqlStr,polnStr,scanStr,arrayStr,
                    stateObsModeStr,observationStr);
    if (msSelection.getSelectedMS(selectedMS))
      cerr << "Got the selected MS!" << endl;
    else
      cerr << "The set of expressions resulted into null-selection";

Motivation

To generalize the implementation of the MSSelection parsers.

Definition at line 195 of file MSSelectableTable.h.


Constructor & Destructor Documentation

Definition at line 198 of file MSSelectableTable.h.

virtual casa::MSInterface::~MSInterface ( ) [inline, virtual]

Definition at line 200 of file MSSelectableTable.h.

References msMainCols_p.


Member Function Documentation

virtual const MSAntenna& casa::MSInterface::antenna ( ) [inline, virtual]

Implements casa::MSSelectableTable.

Definition at line 201 of file MSSelectableTable.h.

References casa::MeasurementSet::antenna(), and asMS().

virtual const MeasurementSet* casa::MSInterface::asMS ( ) [inline, virtual]
virtual String casa::MSInterface::columnName ( MSMainEnums::PredefinedColumns  nameEnum) [inline, virtual]

Implements casa::MSSelectableTable.

Definition at line 206 of file MSSelectableTable.h.

virtual const MSDataDescription& casa::MSInterface::dataDescription ( ) [inline, virtual]

Implements casa::MSSelectableTable.

Definition at line 204 of file MSSelectableTable.h.

References asMS(), and casa::MeasurementSet::dataDescription().

virtual const MSField& casa::MSInterface::field ( ) [inline, virtual]

Implements casa::MSSelectableTable.

Definition at line 202 of file MSSelectableTable.h.

References asMS(), and casa::MeasurementSet::field().

virtual Bool casa::MSInterface::isMS ( ) [inline, virtual]

Implements casa::MSSelectableTable.

Definition at line 207 of file MSSelectableTable.h.

References casa::True.

Implements casa::MSSelectableTable.

Definition at line 210 of file MSSelectableTable.h.

virtual const MSObservation& casa::MSInterface::observation ( ) [inline, virtual]

Implements casa::MSSelectableTable.

Definition at line 205 of file MSSelectableTable.h.

References asMS(), and casa::MeasurementSet::observation().

virtual const MSSpectralWindow& casa::MSInterface::spectralWindow ( ) [inline, virtual]

Implements casa::MSSelectableTable.

Definition at line 203 of file MSSelectableTable.h.

References asMS(), and casa::MeasurementSet::spectralWindow().


Member Data Documentation

Definition at line 211 of file MSSelectableTable.h.

Referenced by ~MSInterface().


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