29 #ifndef MS_SDOBSERVATIONHANDLER_H
30 #define MS_SDOBSERVATIONHANDLER_H
43 class MSObservationColumns;
MSObservationColumns * msObsCols_p
RORecordFieldPtr< Array< Double > > timeRange_p
RORecordFieldPtr< String > observer_p
pointers to fields in record, only used if attached
Index to one or more columns in a table.
RecordFieldPtr< Bool > flagRowKey_p
RORecordFieldPtr< String > obsid_p
A Table intended to hold a MeasurementSet OBSERVATION table.
A class to provide easy access to MSObservation columns.
void attach(MeasurementSet &ms, Vector< Bool > &handledCols, const Record &row)
attach to a MS, mark the appropriate columns as handled given the row
void clearAll()
cleanup everything
Int observationId()
get the current observation ID
RecordFieldPtr< String > observerKey_p
ScalarColumn< String > nsObsIdCol_p
void initAll(MeasurementSet &ms, Vector< Bool > &handledCols, const Record &row)
initialize everything
RORecordFieldPtr< Double > releaseDate_p
SDObservationHandler & operator=(const SDObservationHandler &other)
assignment operator, uses copy semantics
Access to an individual field in a record.
RORecordFieldPtr< String > projid_p
RORecordFieldPtr< Bool > flagRow_p
RecordFieldPtr< Double > releaseDateKey_p
void updateTimeRange(const Vector< Double > &timeRange)
update the time range
A hierarchical collection of named fields of various types.
void fill(const Record &row, const String &telescopeName, const Vector< Double > &timeRange)
fill - a new row is added only when necessary
RecordFieldPtr< String > projectKey_p
A Table intended to hold astronomical data (a set of Measurements).
RecordFieldPtr< String > ns_obsidKey_p
void clearRow()
cleanup things which depend on the row description being fixed
SDObservationHandler()
default ctor is not attached to a MS and hence is useless until attached
String: the storage and methods of handling collections of characters.
Access to a scalar table column with arbitrary data type.
RecordFieldPtr< String > telescopeKey_p
void makeIndex()
initialize the index
void initRow(Vector< Bool > &handledCols, const Record &row)
initialize the things which depend on the row
Read-Only access to an individual field from a Record.
void resetRow(const Record &row)
reset internals given indicated row, use the same MS