casa
$Rev:20696$
|
GBTMSWeatherCopier copies Weather DAP fields toa MSWeather table. More...
#include <GBTMSWeatherCopier.h>
Public Member Functions | |
GBTMSWeatherCopier (MSWeather &msWeather, const Record &weatherRecord, const TableDesc &td, Int id) | |
construct the copier given the MSWeather table and the record which will contain the DAP fields to be copied. | |
~GBTMSWeatherCopier () | |
void | copy (uInt toRow, const String &sampler, const String &manager, const MVTime &time, Double interval, Int antennaId) |
copy the current contents to indicated row of the table, which must have already been added to the weather table | |
void | reinit (const Record &weatherRecord, const TableDesc &td, Int id) |
re-initialize things to use the indicate Record, TableDesc and Id | |
Private Member Functions | |
void | cleanup () |
void | detachFields () |
GBTMSWeatherCopier (const GBTMSWeatherCopier &other) | |
undefined and unavailable | |
void | operator= (const GBTMSWeatherCopier &other) |
Private Attributes | |
MSWeather * | msWeather_p |
MSWeatherColumns * | msWeatherCols_p |
TableColumn | samplerCol_p |
sampler and manager | |
TableColumn | managerCol_p |
Int | id_p |
RORecordFieldPtr< Float > | windVelField_p |
standard fields with standard MSColumns to receive them | |
RORecordFieldPtr< Float > | windDirField_p |
RORecordFieldPtr< Float > | ambTempField_p |
RORecordFieldPtr< Float > | pressureField_p |
RORecordFieldPtr< Float > | dewPointField_p |
Bool | hasWindVel_p |
flags indicating which fields are actually present in this copier | |
Bool | hasWindDir_p |
Bool | hasAmbTemp_p |
Bool | hasPressure_p |
Bool | hasDewPoint_p |
CopyRecordToTable * | fieldCopier_p |
the copier for everything else |
GBTMSWeatherCopier copies Weather DAP fields toa MSWeather table.
Internal
This class copies GBT Weather DAP 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 copiers must work with multiple samplers and managers, this class was derived from GBTDAPCopierBase.
Writing a copier 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 GBTMSWeatherCopier.h.
GBTMSWeatherCopier::GBTMSWeatherCopier | ( | MSWeather & | msWeather, |
const Record & | weatherRecord, | ||
const TableDesc & | td, | ||
Int | id | ||
) |
construct the copier given the MSWeather table and the record which will contain the DAP fields to be copied.
Supply the DAP TableDesc and ID for this copier.
GBTMSWeatherCopier::GBTMSWeatherCopier | ( | const GBTMSWeatherCopier & | other | ) | [private] |
undefined and unavailable
void GBTMSWeatherCopier::cleanup | ( | ) | [private] |
void GBTMSWeatherCopier::copy | ( | uInt | toRow, |
const String & | sampler, | ||
const String & | manager, | ||
const MVTime & | time, | ||
Double | interval, | ||
Int | antennaId | ||
) |
copy the current contents to indicated row of the table, which must have already been added to the weather table
void GBTMSWeatherCopier::detachFields | ( | ) | [private] |
void GBTMSWeatherCopier::operator= | ( | const GBTMSWeatherCopier & | other | ) | [private] |
void GBTMSWeatherCopier::reinit | ( | const Record & | weatherRecord, |
const TableDesc & | td, | ||
Int | id | ||
) |
re-initialize things to use the indicate Record, TableDesc and Id
RORecordFieldPtr<Float> GBTMSWeatherCopier::ambTempField_p [private] |
Definition at line 120 of file GBTMSWeatherCopier.h.
RORecordFieldPtr<Float> GBTMSWeatherCopier::dewPointField_p [private] |
Definition at line 120 of file GBTMSWeatherCopier.h.
CopyRecordToTable* GBTMSWeatherCopier::fieldCopier_p [private] |
the copier for everything else
Definition at line 127 of file GBTMSWeatherCopier.h.
Bool GBTMSWeatherCopier::hasAmbTemp_p [private] |
Definition at line 124 of file GBTMSWeatherCopier.h.
Bool GBTMSWeatherCopier::hasDewPoint_p [private] |
Definition at line 124 of file GBTMSWeatherCopier.h.
Bool GBTMSWeatherCopier::hasPressure_p [private] |
Definition at line 124 of file GBTMSWeatherCopier.h.
Bool GBTMSWeatherCopier::hasWindDir_p [private] |
Definition at line 124 of file GBTMSWeatherCopier.h.
Bool GBTMSWeatherCopier::hasWindVel_p [private] |
flags indicating which fields are actually present in this copier
Definition at line 124 of file GBTMSWeatherCopier.h.
Int GBTMSWeatherCopier::id_p [private] |
Definition at line 117 of file GBTMSWeatherCopier.h.
TableColumn GBTMSWeatherCopier::managerCol_p [private] |
Definition at line 115 of file GBTMSWeatherCopier.h.
MSWeather* GBTMSWeatherCopier::msWeather_p [private] |
Definition at line 111 of file GBTMSWeatherCopier.h.
MSWeatherColumns* GBTMSWeatherCopier::msWeatherCols_p [private] |
Definition at line 112 of file GBTMSWeatherCopier.h.
RORecordFieldPtr<Float> GBTMSWeatherCopier::pressureField_p [private] |
Definition at line 120 of file GBTMSWeatherCopier.h.
TableColumn GBTMSWeatherCopier::samplerCol_p [private] |
sampler and manager
Definition at line 115 of file GBTMSWeatherCopier.h.
RORecordFieldPtr<Float> GBTMSWeatherCopier::windDirField_p [private] |
Definition at line 120 of file GBTMSWeatherCopier.h.
RORecordFieldPtr<Float> GBTMSWeatherCopier::windVelField_p [private] |
standard fields with standard MSColumns to receive them
Definition at line 120 of file GBTMSWeatherCopier.h.