casacore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
casacore::MSInterface Class Reference

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

#include <MSSelectableTable.h>

Inheritance diagram for casacore::MSInterface:
casacore::MSSelectableTable

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 ()
 
- Public Member Functions inherited from casacore::MSSelectableTable
 MSSelectableTable ()
 
 MSSelectableTable (const Table &table)
 
virtual ~MSSelectableTable ()
 
virtual void setTable (const Table &table)
 
const Tabletable ()
 
TableExprNode col (const String &colName)
 

Private Attributes

MSMainColInterfacemsMainCols_p
 

Additional Inherited Members

- Public Types inherited from casacore::MSSelectableTable
enum  MSSDataType {
  BASELINE_BASED,
  PURE_ANTENNA_BASED,
  REF_ANTENNA_BASED
}
 
- Protected Attributes inherited from casacore::MSSelectableTable
const Tabletable_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 196 of file MSSelectableTable.h.

Constructor & Destructor Documentation

casacore::MSInterface::MSInterface ( )
inline

Definition at line 199 of file MSSelectableTable.h.

casacore::MSInterface::MSInterface ( const Table table)
virtual casacore::MSInterface::~MSInterface ( )
inlinevirtual

Definition at line 201 of file MSSelectableTable.h.

References msMainCols_p.

Member Function Documentation

virtual const MSAntenna& casacore::MSInterface::antenna ( )
inlinevirtual

Implements casacore::MSSelectableTable.

Definition at line 202 of file MSSelectableTable.h.

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

virtual const MeasurementSet* casacore::MSInterface::asMS ( )
inlinevirtual
virtual String casacore::MSInterface::columnName ( MSMainEnums::PredefinedColumns  nameEnum)
inlinevirtual
virtual const MSDataDescription& casacore::MSInterface::dataDescription ( )
inlinevirtual
virtual MSSDataType casacore::MSInterface::dataType ( )
inlinevirtual
virtual const MSField& casacore::MSInterface::field ( )
inlinevirtual

Implements casacore::MSSelectableTable.

Definition at line 203 of file MSSelectableTable.h.

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

virtual Bool casacore::MSInterface::isMS ( )
inlinevirtual

Implements casacore::MSSelectableTable.

Definition at line 208 of file MSSelectableTable.h.

References casacore::True.

virtual MSSelectableMainColumn* casacore::MSInterface::mainColumns ( )
inlinevirtual
virtual const MSObservation& casacore::MSInterface::observation ( )
inlinevirtual

Implements casacore::MSSelectableTable.

Definition at line 206 of file MSSelectableTable.h.

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

virtual const MSSpectralWindow& casacore::MSInterface::spectralWindow ( )
inlinevirtual

Member Data Documentation

MSMainColInterface* casacore::MSInterface::msMainCols_p
private

Definition at line 215 of file MSSelectableTable.h.

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


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