26#ifndef MS_MSSOURCEINDEX_H
27#define MS_MSSOURCEINDEX_H
29#include <casacore/casa/aips.h>
30#include <casacore/ms/MSSel/MSTableIndex.h>
31#include <casacore/ms/MeasurementSets/MSSourceColumns.h>
33#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
Vector< Int > matchSourceCode(const String &code)
add for source code selection
void attach(const MSSource &source)
MSSourceColumns * msSourceCols_p
Pointer to local MSSourceColumns object.
MSSourceIndex & operator=(const MSSourceIndex &other)
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.
Vector< Int > matchSourceName(const Vector< String > &names)
MSSourceIndex()
no index attached, use the attach function or assignment operator to change that
Int & sourceId()
access to the source ID key, throws an exception if isNull() is False
MSSourceIndex(const MSSourceIndex &other)
construct one from another
Int & spectralWindowId()
access to the spectral window ID key, throws an exception if isNull() is False
MSTableIndex()
no index attached, use the attach function or assignment operator to change that
String: the storage and methods of handling collections of characters.
For temporary backward namespace compatibility, use casa as alias for casacore.
String name() const
Return the name of the field.
uInt64 rownr_t
Define the type of a row number in a table.