Go to the documentation of this file.
29 #ifndef MS_SDOBSERVATIONHANDLER_H
30 #define MS_SDOBSERVATIONHANDLER_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/Containers/RecordField.h>
34 #include <casacore/tables/Tables/ScalarColumn.h>
42 class MSObservationColumns;
46 template <
class T>
class Vector;
RORecordFieldPtr< String > obsid_p
SDObservationHandler()
default ctor is not attached to a MS and hence is useless until attached
RORecordFieldPtr< Bool > flagRow_p
RecordFieldPtr< String > projectKey_p
RecordFieldPtr< String > ns_obsidKey_p
void attach(MeasurementSet &ms, Vector< Bool > &handledCols, const Record &row)
attach to a MS, mark the appropriate columns as handled given the row
SDObservationHandler(MeasurementSet &ms, Vector< Bool > &handledCols, const Record &row)
attach this to a MS, mark the appropriate columns as handled given the indicated row
SDObservationHandler(const SDObservationHandler &other)
copy ctor
RORecordFieldPtr< Array< Double > > timeRange_p
RORecordFieldPtr< Double > releaseDate_p
void updateTimeRange(const Vector< Double > &timeRange)
update the time range
void makeIndex()
initialize the index
RORecordFieldPtr< String > observer_p
pointers to fields in record, only used if attached
this file contains all the compiler specific defines
RORecordFieldPtr< String > projid_p
Int observationId()
get the current observation ID
void resetRow(const Record &row)
reset internals given indicated row, use the same MS
Read-Only access to an individual field from a Record.
MSObservationColumns * msObsCols_p
RecordFieldPtr< Double > releaseDateKey_p
SDObservationHandler & operator=(const SDObservationHandler &other)
assignment operator, uses copy semantics
RecordFieldPtr< String > observerKey_p
String: the storage and methods of handling collections of characters.
RecordFieldPtr< String > telescopeKey_p
void clearAll()
cleanup everything
void initRow(Vector< Bool > &handledCols, const Record &row)
initialize the things which depend on the row
void clearRow()
cleanup things which depend on the row description being fixed
void fill(const Record &row, const String &telescopeName, const Vector< Double > &timeRange)
fill - a new row is added only when necessary
ScalarColumn< String > nsObsIdCol_p
RecordFieldPtr< Bool > flagRowKey_p
void initAll(MeasurementSet &ms, Vector< Bool > &handledCols, const Record &row)
initialize everything