casa
$Rev:20696$
|
GBTMSHistoryFiller fills the MSHistory table for GBT fillers. More...
#include <GBTMSHistoryFiller.h>
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 ×tamp) |
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 |
GBTMSHistoryFiller fills the MSHistory table for GBT fillers.
Internal
This class puts GBT data (fills) into the MSHistory table.
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.
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.
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.
GBTMSHistoryFiller::GBTMSHistoryFiller | ( | const GBTMSHistoryFiller & | other | ) | [private] |
undefined and unavailable
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] |
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.