GBTMSHistoryFiller.h

Classes

GBTMSHistoryFiller -- GBTMSHistoryFiller fills the MSHistory table for GBT fillers (full description)

class GBTMSHistoryFiller

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 &timestamp)
void flush()
Private Members
void init(MSHistory &msHistory)
GBTMSHistoryFiller(const GBTMSHistoryFiller &other)
void operator=(const GBTMSHistoryFiller &other)

Description

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

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

GBTMSHistoryFiller()

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.

GBTMSHistoryFiller(MSHistory &msHistory)

A filler attached to an MSHistory table

~GBTMSHistoryFiller()

void attach(MSHistory &msHistory)

attach it to an MSHistory

void fill(Int observationId, const String &message, const String &priority, const String &origin, const MVTime &timestamp)

fill - always adds a new row to the obsLog table

void flush()

flush the underlying MS subtable

void init(MSHistory &msHistory)

initialize the above for the first time

GBTMSHistoryFiller(const GBTMSHistoryFiller &other)

undefined and unavailable

void operator=(const GBTMSHistoryFiller &other)