casa
$Rev:20696$
|
GBTMSAntennaFiller fills the MSAntenna table for GBT fillers. More...
#include <GBTMSAntennaFiller.h>
Public Member Functions | |
GBTMSAntennaFiller () | |
The default ctor. | |
GBTMSAntennaFiller (MSAntenna &msAntenna) | |
A filler attached to an MSAntenna table. | |
~GBTMSAntennaFiller () | |
void | attach (MSAntenna &msAntenna) |
attach it to an MSAntenna | |
void | fill (const GBTAntennaFile &antennaFile) |
fill using the supplied Antenna file if attached or the "GBT" entry in the Measures observatory table. | |
Int | antennaId () const |
this is the row number of the most recently "filled" MSAntenna row | |
void | flush () |
flush the underlying MS subtable | |
Private Member Functions | |
void | init (MSAntenna &msAntenna) |
initialize the above for the first time | |
GBTMSAntennaFiller (const GBTMSAntennaFiller &other) | |
undefined and unavailable | |
void | operator= (const GBTMSAntennaFiller &other) |
Private Attributes | |
MSAntenna * | msAntenna_p |
MSAntennaColumns * | msAntCols_p |
MPosition | position_p |
String | name_p |
Int | antId_p |
GBTMSAntennaFiller fills the MSAntenna table for GBT fillers.
Internal
This class puts GBT data (fills) into the MSAntenna table.
This class puts the appropriate values for the GBT in an MSAntenna table (which has been previously created as part of a MeasurementSet). On each fill() any necessary additions to the MSAntenna are made. For GBT data at there will usually only be one row in this table. This row is added using information in the Antenna file when available or the NRAO_GBT position from the Measures observatory table. A new row is added when the telescope information in the Antenna file changes.
The antennaId is available to be used by other GBTMS*Fillers as other subtables are filled in turn.
Writing a filler is a daunting task. There are various dependencies between the subtables. It helps to encapsulate the knowlege and task of filling a specific subtable to separate classes.
Definition at line 92 of file GBTMSAntennaFiller.h.
The default ctor.
No MSAntenna table has been attached yet. Calling fill on such a filler will throw an exception. It is present so that this object can be instantiated before an MSAntenna has been created.
GBTMSAntennaFiller::GBTMSAntennaFiller | ( | MSAntenna & | msAntenna | ) |
A filler attached to an MSAntenna table.
GBTMSAntennaFiller::GBTMSAntennaFiller | ( | const GBTMSAntennaFiller & | other | ) | [private] |
undefined and unavailable
Int GBTMSAntennaFiller::antennaId | ( | ) | const [inline] |
this is the row number of the most recently "filled" MSAntenna row
Definition at line 116 of file GBTMSAntennaFiller.h.
References antId_p.
void GBTMSAntennaFiller::attach | ( | MSAntenna & | msAntenna | ) |
attach it to an MSAntenna
void GBTMSAntennaFiller::fill | ( | const GBTAntennaFile & | antennaFile | ) |
fill using the supplied Antenna file if attached or the "GBT" entry in the Measures observatory table.
rows are reused if the name and position match
void GBTMSAntennaFiller::flush | ( | ) | [inline] |
flush the underlying MS subtable
Definition at line 119 of file GBTMSAntennaFiller.h.
References msAntenna_p.
void GBTMSAntennaFiller::init | ( | MSAntenna & | msAntenna | ) | [private] |
initialize the above for the first time
void GBTMSAntennaFiller::operator= | ( | const GBTMSAntennaFiller & | other | ) | [private] |
Int GBTMSAntennaFiller::antId_p [private] |
Definition at line 128 of file GBTMSAntennaFiller.h.
Referenced by antennaId().
MSAntennaColumns* GBTMSAntennaFiller::msAntCols_p [private] |
Definition at line 123 of file GBTMSAntennaFiller.h.
MSAntenna* GBTMSAntennaFiller::msAntenna_p [private] |
Definition at line 122 of file GBTMSAntennaFiller.h.
Referenced by flush().
String GBTMSAntennaFiller::name_p [private] |
Definition at line 126 of file GBTMSAntennaFiller.h.
MPosition GBTMSAntennaFiller::position_p [private] |
Definition at line 125 of file GBTMSAntennaFiller.h.