casa
$Rev:20696$
|
GBTMSWeatherFiller fills the MSWeather table for GBT fillers. More...
#include <GBTMSWeatherFiller.h>
Public Member Functions | |
GBTMSWeatherFiller () | |
The default ctor. | |
GBTMSWeatherFiller (MSWeather &msWeather) | |
A filler attached to an MSWeather table. | |
~GBTMSWeatherFiller () | |
const String & | device () const |
report the device name | |
void | attach (MSWeather &msWeather) |
attach it to an MSWeather | |
Int | prepare (const String &fileName, const String &manager, const String &sampler, const MVTime &startTime) |
prepare for filling the indicated weather file | |
void | setAntennaId (Int antennaId) |
set the antennaId - defaults to -1 if not explicitly set | |
void | fill () |
fill what has been prepared | |
void | flush () |
flush the underlying MS subtable | |
Private Member Functions | |
void | init (MSWeather &msWeather) |
initialize the above for the first time | |
GBTMSWeatherFiller (const GBTMSWeatherFiller &other) | |
undefined and unavailable | |
void | operator= (const GBTMSWeatherFiller &other) |
Private Attributes | |
String | device_p |
MSWeather * | msWeather_p |
TableColumn | samplerCol_p |
sampler and manager | |
TableColumn | managerCol_p |
PtrBlock< GBTMSWeatherCopier * > | copiers_p |
copiers - one for each | |
Int | ndap_p |
and how many of them are really in use at any given point | |
Int | antennaId_p |
GBTMSWeatherFiller fills the MSWeather table for GBT fillers.
Internal
This class puts GBT data (fills) into the MSWeather table.
This class puts the appropriate values for the GBT in an MSWeather table (which has been previously created as part of a MeasurementSet). On each fill() any necessary additions to the MSWeather are made. Because it works with the Weather FITS files in the same way that the generic DAP fillers must work with multiple samplers and managers, this class was derived from GBTDAPFillerBase.
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 91 of file GBTMSWeatherFiller.h.
The default ctor.
No MSWeather 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 MSWeather has been created.
GBTMSWeatherFiller::GBTMSWeatherFiller | ( | MSWeather & | msWeather | ) |
A filler attached to an MSWeather table.
GBTMSWeatherFiller::GBTMSWeatherFiller | ( | const GBTMSWeatherFiller & | other | ) | [private] |
undefined and unavailable
void GBTMSWeatherFiller::attach | ( | MSWeather & | msWeather | ) |
attach it to an MSWeather
const String& GBTMSWeatherFiller::device | ( | ) | const [inline, virtual] |
report the device name
Implements GBTDAPFillerBase.
Definition at line 106 of file GBTMSWeatherFiller.h.
References device_p.
void GBTMSWeatherFiller::fill | ( | ) | [virtual] |
fill what has been prepared
Implements GBTDAPFillerBase.
void GBTMSWeatherFiller::flush | ( | ) | [inline] |
flush the underlying MS subtable
Definition at line 122 of file GBTMSWeatherFiller.h.
References msWeather_p.
void GBTMSWeatherFiller::init | ( | MSWeather & | msWeather | ) | [private] |
initialize the above for the first time
void GBTMSWeatherFiller::operator= | ( | const GBTMSWeatherFiller & | other | ) | [private] |
Int GBTMSWeatherFiller::prepare | ( | const String & | fileName, |
const String & | manager, | ||
const String & | sampler, | ||
const MVTime & | startTime | ||
) | [virtual] |
prepare for filling the indicated weather file
Reimplemented from GBTDAPFillerBase.
void GBTMSWeatherFiller::setAntennaId | ( | Int | antennaId | ) | [inline] |
set the antennaId - defaults to -1 if not explicitly set
Definition at line 116 of file GBTMSWeatherFiller.h.
References antennaId_p.
Int GBTMSWeatherFiller::antennaId_p [private] |
Definition at line 137 of file GBTMSWeatherFiller.h.
Referenced by setAntennaId().
PtrBlock<GBTMSWeatherCopier *> GBTMSWeatherFiller::copiers_p [private] |
copiers - one for each
Definition at line 133 of file GBTMSWeatherFiller.h.
String GBTMSWeatherFiller::device_p [private] |
Definition at line 125 of file GBTMSWeatherFiller.h.
Referenced by device().
TableColumn GBTMSWeatherFiller::managerCol_p [private] |
Definition at line 130 of file GBTMSWeatherFiller.h.
MSWeather* GBTMSWeatherFiller::msWeather_p [private] |
Definition at line 127 of file GBTMSWeatherFiller.h.
Referenced by flush().
Int GBTMSWeatherFiller::ndap_p [private] |
and how many of them are really in use at any given point
Reimplemented from GBTDAPFillerBase.
Definition at line 135 of file GBTMSWeatherFiller.h.
TableColumn GBTMSWeatherFiller::samplerCol_p [private] |
sampler and manager
Definition at line 130 of file GBTMSWeatherFiller.h.