29 #ifndef MS_SDSOURCEHANDLER_H
30 #define MS_SDSOURCEHANDLER_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/Arrays/ArrayFwd.h>
34 #include <casacore/casa/Containers/RecordField.h>
42 class MSSourceColumns;
Read-Only access to an individual field from a Record.
SDSourceHandler(MeasurementSet &ms, Vector< Bool > &handledCols, const Record &row)
attach this to a MS, marking fields in row which are explicitly handled here
Int sourceId_p
the current source ID
Int nextSourceId_p
the next source ID to use
void fill(const Record &row, Int spectralWindowId)
fill - a source is unique in source name and code
void attach(MeasurementSet &ms, Vector< Bool > &handledCols, const Record &row)
attach to a MS, the handledCols and row arguments are ignored here
RecordFieldPtr< String > codeKey_p
RORecordFieldPtr< Array< Double > > properMotionField_p
void initAll(MeasurementSet &ms, Vector< Bool > &handledCols, const Record &row)
initialize everything
Int sourceId()
get the current source ID
SDSourceHandler()
default ctor is not attached to a MS and hence is useless until attached
RORecordFieldPtr< String > object_p
RORecordFieldPtr< String > obsmode_p
void clearAll()
cleanup everything
RORecordFieldPtr< String > molecule_p
RecordFieldPtr< String > nameKey_p
RORecordFieldPtr< Int > calibrationGroupField_p
fields which might come from a pre-existin MS
MSSourceColumns * msSourceCols_p
RORecordFieldPtr< Array< Double > > directionField_p
RORecordFieldPtr< Array< Double > > positionField_p
RORecordFieldPtr< String > transiti_p
String fields.
void clearRow()
clean up items related to the row
RORecordFieldPtr< Double > intervalField_p
void resetRow(const Record &)
reset internals given indicated row, use the same MS; just resets the id pointer
void initRow(Vector< Bool > &handledCols, const Record &row)
initialize the stuff dependent on the row
RORecordFieldPtr< Double > timeField_p
SDSourceHandler(const SDSourceHandler &other)
copy ctor
SDSourceHandler & operator=(const SDSourceHandler &other)
assignment operator, uses copy semantics
RORecordFieldPtr< Int > pulsarIdField_p
Int restfreq_p
fields possibly mined from the SDFITS row floating point fields that we can't be certain of their typ...
Bool hasTransition_p
which optional colums exist
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.