29 #ifndef MS_MSSOURCEINDEX_H
30 #define MS_MSSOURCEINDEX_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/ms/MSSel/MSTableIndex.h>
34 #include <casacore/ms/MeasurementSets/MSSourceColumns.h>
36 #include <casacore/casa/Containers/RecordField.h>
static Int compare(const Block< void * > &fieldPtrs, const Block< void * > &dataPtrs, const Block< Int > &dataTypes, rownr_t index)
the specialized compare function to pass to the ColumnsIndex object.
RowNumbers getRowNumbersOfSourceID(const Int sid)
Return rows matching a SourceID.
MSSourceIndex(const MSSource &source)
construct one using the indicated SOURCE table
Int & sourceId()
access to the source ID key, throws an exception if isNull() is False
void attach(const MSSource &source)
MSSourceColumns * msSourceCols_p
Pointer to local MSSourceColumns object.
Vector< Int > matchSourceCode(const String &code)
add for source code selection
Vector< Int > matchSourceName(const Vector< String > &names)
Int & spectralWindowId()
access to the spectral window ID key, throws an exception if isNull() is False
RecordFieldPtr< Int > sourceId_p
RecordFieldPtr< Int > spwId_p
Vector< Int > matchSourceName(const String &name)
Match a source name or list of source names to a set of SOURCE_ID's.
MSSourceIndex()
no index attached, use the attach function or assignment operator to change that
MSSourceIndex & operator=(const MSSourceIndex &other)
MSSourceIndex(const MSSourceIndex &other)
construct one from another
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
uInt64 rownr_t
Define the type of a row number in a table.