casa
$Rev:20696$
|
MSInterface: A specialization of MSSelectableTable for accessing MS. More...
#include <MSSelectableTable.h>
Public Member Functions | |
MSInterface () | |
MSInterface (const Table &table) | |
virtual | ~MSInterface () |
virtual const MSAntenna & | antenna () |
virtual const MSField & | field () |
virtual const MSSpectralWindow & | spectralWindow () |
virtual const MSDataDescription & | dataDescription () |
virtual const MSObservation & | observation () |
virtual String | columnName (MSMainEnums::PredefinedColumns nameEnum) |
virtual Bool | isMS () |
virtual const MeasurementSet * | asMS () |
virtual MSSelectableMainColumn * | mainColumns () |
Private Attributes | |
MSMainColInterface * | msMainCols_p |
MSInterface: A specialization of MSSelectableTable for accessing MS.
Public interface
From "ms" and "interface".
A class that can be passed around as MSSelectableTable, with most of the methods overloaded to work with the underlaying MS.
// // 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";
To generalize the implementation of the MSSelection parsers.
Definition at line 195 of file MSSelectableTable.h.
casa::MSInterface::MSInterface | ( | ) | [inline] |
Definition at line 198 of file MSSelectableTable.h.
casa::MSInterface::MSInterface | ( | const Table & | table | ) |
virtual casa::MSInterface::~MSInterface | ( | ) | [inline, virtual] |
Definition at line 200 of file MSSelectableTable.h.
References msMainCols_p.
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] |
Implements casa::MSSelectableTable.
Definition at line 209 of file MSSelectableTable.h.
References casa::MSSelectableTable::table().
Referenced by antenna(), dataDescription(), field(), observation(), and spectralWindow().
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.
virtual MSSelectableMainColumn* casa::MSInterface::mainColumns | ( | ) | [inline, virtual] |
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().
Definition at line 211 of file MSSelectableTable.h.
Referenced by ~MSInterface().