casa
$Rev:20696$
|
Read from an MS, coordinating all of the subtables in the process. More...
#include <MSReader.h>
Public Member Functions | |
MSReader (const MeasurementSet &ms) | |
Attach to the indicated MeasurementSet. | |
~MSReader () | |
void | gotoRow (uInt which) |
Go to the indicated row in the MAIN table of the MS and point at all of the appropriate rows in each of the subtables as a result of going to this row. | |
const Vector< String > & | tables () const |
const RecordInterface & | tableRow (const String &name) const |
Return the current row in the named table. | |
Int | rowNumber (const String &name) const |
Return the current row number in the named table. | |
const MeasurementSet & | ms () const |
Return a reference to the MS. | |
const Table & | table (const String &name) const |
Return a reference to the named subtable. | |
const Record & | units (const String &) const |
this isn't what we need, right now just return an empty record | |
Private Member Functions | |
MSReader () | |
undefined and unavailable | |
MSReader (const MSReader &) | |
MSReader & | operator= (const MSReader &) |
Private Attributes | |
MeasurementSet | itsMS |
ROMSColumns | itsMSCols |
Unit | itsSecUnit |
This possibly saves some time, Units of seconds. | |
MSValidIds | itsIds |
SimpleOrderedMap< String, Int > | itsTabId |
this maps table name to an index used throughout this class | |
Block< MSTableIndex > | itsIndexes |
the indexes for the NS subtables | |
MSDopplerIndex | itsDopplerIndex |
specific indexes | |
MSFeedIndex | itsFeed1Index |
MSFeedIndex | itsFeed2Index |
MSFreqOffIndex | itsFreqOffIndex |
MSPointingIndex | itsPointing1Index |
MSPointingIndex | itsPointing2Index |
MSSourceIndex | itsSourceIndex |
MSSysCalIndex | itsSyscal1Index |
MSSysCalIndex | itsSyscal2Index |
MSWeatherIndex | itsWeather1Index |
MSWeatherIndex | itsWeather2Index |
Int | itsMainId |
table IDs for the standard tables | |
Int | itsAnt1Id |
Int | itsAnt2Id |
Int | itsDDId |
Int | itsDopplerId |
Int | itsFeed1Id |
Int | itsFeed2Id |
Int | itsFieldId |
Int | itsFlagCmdId |
Int | itsFreqOffsetId |
Int | itsObsId |
Int | itsPointing1Id |
Int | itsPointing2Id |
Int | itsPolId |
Int | itsProcId |
Int | itsSourceId |
Int | itsSpwId |
Int | itsStateId |
Int | itsSyscal1Id |
Int | itsSyscal2Id |
Int | itsWeather1Id |
Int | itsWeather2Id |
Block< ROTableRow > | itsTabRows |
the table rows | |
Block< Int > | itsRowNumbers |
What row number for each table is the most recent gotoRow call. | |
Record | emptyRecord |
this empty record is returned by tableRow when the name argument does not exist | |
Table | emptyTable |
this empty table is returned by table when the name argument does not exist | |
Vector< String > | itsTableNames |
Read from an MS, coordinating all of the subtables in the process.
Internal
Definition at line 62 of file MSReader.h.
casa::MSReader::MSReader | ( | const MeasurementSet & | ms | ) |
Attach to the indicated MeasurementSet.
casa::MSReader::~MSReader | ( | ) | [inline] |
Definition at line 68 of file MSReader.h.
casa::MSReader::MSReader | ( | ) | [private] |
undefined and unavailable
casa::MSReader::MSReader | ( | const MSReader & | ) | [private] |
void casa::MSReader::gotoRow | ( | uInt | which | ) |
Go to the indicated row in the MAIN table of the MS and point at all of the appropriate rows in each of the subtables as a result of going to this row.
const MeasurementSet& casa::MSReader::ms | ( | ) | const [inline] |
Int casa::MSReader::rowNumber | ( | const String & | name | ) | const |
Return the current row number in the named table.
This returns -1 if that table has no row as a result of the most recent gotoRow.
const Table& casa::MSReader::table | ( | const String & | name | ) | const |
Return a reference to the named subtable.
const RecordInterface& casa::MSReader::tableRow | ( | const String & | name | ) | const |
Return the current row in the named table.
Use rowNumber to check to see that the most recent gotoRow actually found a matching row.
const Vector<String>& casa::MSReader::tables | ( | ) | const [inline] |
Definition at line 75 of file MSReader.h.
References itsTableNames.
const Record& casa::MSReader::units | ( | const String & | ) | const [inline] |
this isn't what we need, right now just return an empty record
Definition at line 93 of file MSReader.h.
References emptyRecord.
Record casa::MSReader::emptyRecord [private] |
this empty record is returned by tableRow when the name argument does not exist
Definition at line 134 of file MSReader.h.
Referenced by units().
Table casa::MSReader::emptyTable [private] |
this empty table is returned by table when the name argument does not exist
Definition at line 137 of file MSReader.h.
Int casa::MSReader::itsAnt1Id [private] |
Definition at line 123 of file MSReader.h.
Int casa::MSReader::itsAnt2Id [private] |
Definition at line 123 of file MSReader.h.
Int casa::MSReader::itsDDId [private] |
Definition at line 123 of file MSReader.h.
Int casa::MSReader::itsDopplerId [private] |
Definition at line 123 of file MSReader.h.
specific indexes
Definition at line 110 of file MSReader.h.
Int casa::MSReader::itsFeed1Id [private] |
Definition at line 123 of file MSReader.h.
MSFeedIndex casa::MSReader::itsFeed1Index [private] |
Definition at line 111 of file MSReader.h.
Int casa::MSReader::itsFeed2Id [private] |
Definition at line 123 of file MSReader.h.
MSFeedIndex casa::MSReader::itsFeed2Index [private] |
Definition at line 112 of file MSReader.h.
Int casa::MSReader::itsFieldId [private] |
Definition at line 123 of file MSReader.h.
Int casa::MSReader::itsFlagCmdId [private] |
Definition at line 123 of file MSReader.h.
Definition at line 113 of file MSReader.h.
Int casa::MSReader::itsFreqOffsetId [private] |
Definition at line 123 of file MSReader.h.
MSValidIds casa::MSReader::itsIds [private] |
Definition at line 101 of file MSReader.h.
Block<MSTableIndex> casa::MSReader::itsIndexes [private] |
the indexes for the NS subtables
Definition at line 107 of file MSReader.h.
Int casa::MSReader::itsMainId [private] |
table IDs for the standard tables
Definition at line 123 of file MSReader.h.
MeasurementSet casa::MSReader::itsMS [private] |
Definition at line 95 of file MSReader.h.
Referenced by ms().
ROMSColumns casa::MSReader::itsMSCols [private] |
Definition at line 96 of file MSReader.h.
Int casa::MSReader::itsObsId [private] |
Definition at line 123 of file MSReader.h.
Int casa::MSReader::itsPointing1Id [private] |
Definition at line 123 of file MSReader.h.
Definition at line 114 of file MSReader.h.
Int casa::MSReader::itsPointing2Id [private] |
Definition at line 123 of file MSReader.h.
Definition at line 115 of file MSReader.h.
Int casa::MSReader::itsPolId [private] |
Definition at line 123 of file MSReader.h.
Int casa::MSReader::itsProcId [private] |
Definition at line 123 of file MSReader.h.
Block<Int> casa::MSReader::itsRowNumbers [private] |
What row number for each table is the most recent gotoRow call.
Set to -1 if there was no matching row as a result of that call.
Definition at line 131 of file MSReader.h.
Unit casa::MSReader::itsSecUnit [private] |
This possibly saves some time, Units of seconds.
Definition at line 99 of file MSReader.h.
Int casa::MSReader::itsSourceId [private] |
Definition at line 123 of file MSReader.h.
MSSourceIndex casa::MSReader::itsSourceIndex [private] |
Definition at line 116 of file MSReader.h.
Int casa::MSReader::itsSpwId [private] |
Definition at line 123 of file MSReader.h.
Int casa::MSReader::itsStateId [private] |
Definition at line 123 of file MSReader.h.
Int casa::MSReader::itsSyscal1Id [private] |
Definition at line 123 of file MSReader.h.
MSSysCalIndex casa::MSReader::itsSyscal1Index [private] |
Definition at line 117 of file MSReader.h.
Int casa::MSReader::itsSyscal2Id [private] |
Definition at line 123 of file MSReader.h.
MSSysCalIndex casa::MSReader::itsSyscal2Index [private] |
Definition at line 118 of file MSReader.h.
SimpleOrderedMap<String, Int> casa::MSReader::itsTabId [private] |
this maps table name to an index used throughout this class
Definition at line 104 of file MSReader.h.
Vector<String> casa::MSReader::itsTableNames [private] |
Definition at line 139 of file MSReader.h.
Referenced by tables().
Block<ROTableRow> casa::MSReader::itsTabRows [private] |
the table rows
Definition at line 127 of file MSReader.h.
Int casa::MSReader::itsWeather1Id [private] |
Definition at line 123 of file MSReader.h.
Definition at line 119 of file MSReader.h.
Int casa::MSReader::itsWeather2Id [private] |
Definition at line 123 of file MSReader.h.
Definition at line 120 of file MSReader.h.