casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
GBTMSWeatherCopier Class Reference

GBTMSWeatherCopier copies Weather DAP fields toa MSWeather table. More...

#include <GBTMSWeatherCopier.h>

List of all members.

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

Detailed Description

GBTMSWeatherCopier copies Weather DAP fields toa MSWeather table.

Intended use:

Internal

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

This class copies GBT Weather DAP into the MSWeather table.

Synopsis

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.

Example

Motivation

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.


Constructor & Destructor Documentation

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.

undefined and unavailable


Member Function Documentation

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::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


Member Data Documentation

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.

Definition at line 124 of file GBTMSWeatherCopier.h.

Definition at line 124 of file GBTMSWeatherCopier.h.

Definition at line 124 of file GBTMSWeatherCopier.h.

Definition at line 124 of file GBTMSWeatherCopier.h.

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.


The documentation for this class was generated from the following file: