casacore::MSInterface Class Reference

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

#include <MSSelectableTable.h>

Inheritance diagram for casacore::MSInterface:
casacore::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 MSSDataType dataType ()
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 198 of file MSSelectableTable.h.


Constructor & Destructor Documentation

casacore::MSInterface::MSInterface (  )  [inline]

Definition at line 201 of file MSSelectableTable.h.

casacore::MSInterface::MSInterface ( const Table table  ) 
virtual casacore::MSInterface::~MSInterface (  )  [inline, virtual]

Definition at line 203 of file MSSelectableTable.h.

References msMainCols_p.


Member Function Documentation

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

Implements casacore::MSSelectableTable.

Definition at line 204 of file MSSelectableTable.h.

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

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

Implements casacore::MSSelectableTable.

Definition at line 209 of file MSSelectableTable.h.

virtual const MSDataDescription& casacore::MSInterface::dataDescription (  )  [inline, virtual]
virtual MSSDataType casacore::MSInterface::dataType (  )  [inline, virtual]
virtual const MSField& casacore::MSInterface::field (  )  [inline, virtual]

Implements casacore::MSSelectableTable.

Definition at line 205 of file MSSelectableTable.h.

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

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

Implements casacore::MSSelectableTable.

Definition at line 210 of file MSSelectableTable.h.

References casacore::True.

virtual MSSelectableMainColumn* casacore::MSInterface::mainColumns (  )  [inline, virtual]
virtual const MSObservation& casacore::MSInterface::observation (  )  [inline, virtual]

Implements casacore::MSSelectableTable.

Definition at line 208 of file MSSelectableTable.h.

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

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

Member Data Documentation

Definition at line 217 of file MSSelectableTable.h.

Referenced by mainColumns(), and ~MSInterface().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1