MSSelectableTable: An interface class used by MSSelection module to access the sub-tables and main-table columns of MS-like tables. More...
#include <MSSelectableTable.h>
Public Types | |
enum | MSSDataType { BASELINE_BASED, PURE_ANTENNA_BASED, REF_ANTENNA_BASED } |
Public Member Functions | |
MSSelectableTable () | |
MSSelectableTable (const Table &table) | |
virtual | ~MSSelectableTable () |
virtual void | setTable (const Table &table) |
const Table * | table () |
TableExprNode | col (const String &colName) |
virtual Bool | isMS ()=0 |
virtual MSSDataType | dataType ()=0 |
virtual const MSAntenna & | antenna ()=0 |
virtual const MSField & | field ()=0 |
virtual const MSSpectralWindow & | spectralWindow ()=0 |
virtual const MSDataDescription & | dataDescription ()=0 |
virtual const MSObservation & | observation ()=0 |
virtual String | columnName (MSMainEnums::PredefinedColumns nameEnum)=0 |
virtual const MeasurementSet * | asMS ()=0 |
virtual MSSelectableMainColumn * | mainColumns ()=0 |
Protected Attributes | |
const Table * | table_p |
MSSelectableTable: An interface class used by MSSelection module to access the sub-tables and main-table columns of MS-like tables.
Public interface
From "msselection" and "table".
This is a pure virtual base-class to provide a table-type agnostic interface to the MSSelection module to access sub-tables and main-table columns of MS-like tables.
To allow use of the MSSelection module for selection on any table that follows the general structure of the MS database. Via this class, minor differences in the database layout can be hidden from the MSSelection module. This also keeps MeasurementSet module from depending on other MS-like database implemention which may use the MSSelection module. Such usage will need to implement a specialization of MSSelectableTable and use it to instantiate the MSSelection object.
Definition at line 98 of file MSSelectableTable.h.
Definition at line 101 of file MSSelectableTable.h.
casacore::MSSelectableTable::MSSelectableTable | ( | ) | [inline] |
Definition at line 103 of file MSSelectableTable.h.
casacore::MSSelectableTable::MSSelectableTable | ( | const Table & | table | ) | [inline] |
Definition at line 104 of file MSSelectableTable.h.
References table_p.
virtual casacore::MSSelectableTable::~MSSelectableTable | ( | ) | [inline, virtual] |
Definition at line 105 of file MSSelectableTable.h.
virtual const MSAntenna& casacore::MSSelectableTable::antenna | ( | ) | [pure virtual] |
Implemented in casacore::MSInterface.
virtual const MeasurementSet* casacore::MSSelectableTable::asMS | ( | ) | [pure virtual] |
Implemented in casacore::MSInterface.
TableExprNode casacore::MSSelectableTable::col | ( | const String & | colName | ) | [inline] |
Definition at line 109 of file MSSelectableTable.h.
References casacore::Table::col(), and table().
virtual String casacore::MSSelectableTable::columnName | ( | MSMainEnums::PredefinedColumns | nameEnum | ) | [pure virtual] |
Implemented in casacore::MSInterface.
virtual const MSDataDescription& casacore::MSSelectableTable::dataDescription | ( | ) | [pure virtual] |
Implemented in casacore::MSInterface.
virtual MSSDataType casacore::MSSelectableTable::dataType | ( | ) | [pure virtual] |
Implemented in casacore::MSInterface.
virtual const MSField& casacore::MSSelectableTable::field | ( | ) | [pure virtual] |
Implemented in casacore::MSInterface.
virtual Bool casacore::MSSelectableTable::isMS | ( | ) | [pure virtual] |
Implemented in casacore::MSInterface.
virtual MSSelectableMainColumn* casacore::MSSelectableTable::mainColumns | ( | ) | [pure virtual] |
Implemented in casacore::MSInterface.
virtual const MSObservation& casacore::MSSelectableTable::observation | ( | ) | [pure virtual] |
Implemented in casacore::MSInterface.
virtual void casacore::MSSelectableTable::setTable | ( | const Table & | table | ) | [inline, virtual] |
Definition at line 107 of file MSSelectableTable.h.
References table_p.
virtual const MSSpectralWindow& casacore::MSSelectableTable::spectralWindow | ( | ) | [pure virtual] |
Implemented in casacore::MSInterface.
const Table* casacore::MSSelectableTable::table | ( | ) | [inline] |
Definition at line 108 of file MSSelectableTable.h.
References table_p.
Referenced by casacore::MSInterface::asMS(), and col().
const Table* casacore::MSSelectableTable::table_p [protected] |
Definition at line 125 of file MSSelectableTable.h.
Referenced by casacore::MSInterface::mainColumns(), MSSelectableTable(), setTable(), and table().