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

GBTMSHistoryFiller fills the MSHistory table for GBT fillers. More...

#include <GBTMSHistoryFiller.h>

List of all members.

Public Member Functions

 GBTMSHistoryFiller ()
 The default ctor.
 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

Private Member Functions

void init (MSHistory &msHistory)
 initialize the above for the first time
 GBTMSHistoryFiller (const GBTMSHistoryFiller &other)
 undefined and unavailable
void operator= (const GBTMSHistoryFiller &other)

Private Attributes

MSHistory * msHistory_p
MSHistoryColumns * msHistoryCols_p

Detailed Description

GBTMSHistoryFiller fills the MSHistory table for GBT fillers.

Intended use:

Internal

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.

Definition at line 84 of file GBTMSHistoryFiller.h.


Constructor & Destructor Documentation

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::GBTMSHistoryFiller ( MSHistory &  msHistory)

A filler attached to an MSHistory table.

undefined and unavailable


Member Function Documentation

void GBTMSHistoryFiller::attach ( MSHistory &  msHistory)

attach it to an MSHistory

void GBTMSHistoryFiller::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 GBTMSHistoryFiller::flush ( ) [inline]

flush the underlying MS subtable

Definition at line 108 of file GBTMSHistoryFiller.h.

References msHistory_p.

void GBTMSHistoryFiller::init ( MSHistory &  msHistory) [private]

initialize the above for the first time

void GBTMSHistoryFiller::operator= ( const GBTMSHistoryFiller other) [private]

Member Data Documentation

MSHistory* GBTMSHistoryFiller::msHistory_p [private]

Definition at line 111 of file GBTMSHistoryFiller.h.

Referenced by flush().

MSHistoryColumns* GBTMSHistoryFiller::msHistoryCols_p [private]

Definition at line 112 of file GBTMSHistoryFiller.h.


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