GBTMSHistoryFiller.h
Classes
- GBTMSHistoryFiller -- GBTMSHistoryFiller fills the MSHistory table for GBT fillers (full description)
Interface
- Public Members
- GBTMSHistoryFiller()
- GBTMSHistoryFiller(MSHistory &msHistory)
- ~GBTMSHistoryFiller()
- void attach(MSHistory &msHistory)
- void fill(Int observationId, const String &message, const String &priority, const String &origin, const MVTime ×tamp)
- void flush()
- Private Members
- void init(MSHistory &msHistory)
- GBTMSHistoryFiller(const GBTMSHistoryFiller &other)
- void operator=(const GBTMSHistoryFiller &other)
Review Status
- Date Reviewed:
- yyyy/mm/dd
Prerequisite
- MeasurementSets
- GBT FITS files
Etymology
This class puts GBT data (fills) into the MSHistory table.
Synopsis
This class puts the appropriate values for the GBT in an MSHistory
table (which has been previously created as part of a MeasurementSet).
On each fill() any necessary additions to the MSHistory are made.
Each fill() always adds a new row to the MSHistory table.
Example
Motivation
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.
Member Description
The default ctor. No MSHistory 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 MSHistory has been created.
A filler attached to an MSHistory table
attach it to an MSHistory
void fill(Int observationId, const String &message, const String &priority, const String &origin, const MVTime ×tamp)
fill - always adds a new row to the obsLog table
flush the underlying MS subtable
initialize the above for the first time
undefined and unavailable
void operator=(const GBTMSHistoryFiller &other)