MSSourceIndex.h

Classes

MSSourceIndex -- (full description)

class MSSourceIndex : public MSTableIndex

Interface

Public Members
MSSourceIndex()
MSSourceIndex(const MSSource &source)
MSSourceIndex(const MSSourceIndex &other)
virtual ~MSSourceIndex()
MSSourceIndex &operator=(const MSSourceIndex &other)
void attach(const MSSource &source)
Int &sourceId()
Int &spectralWindowId()
Vector<Int> matchSourceName(const String& name)
Vector<Int> matchSourceName(const Vector<String>& names)
Protected Members
static Int compare (const Block<void*>& fieldPtrs, const Block<void*>& dataPtrs, const Block<Int>& dataTypes, Int index)
Private Members
void attachIds()

Description

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

Synopsis

Example

Motivation

Thrown Exceptions

Member Description

MSSourceIndex()

no index attached, use the attach function or assignment operator to change that

MSSourceIndex(const MSSource &source)

construct one using the indicated SOURCE table

MSSourceIndex(const MSSourceIndex &other)

construct one from another

virtual ~MSSourceIndex()

MSSourceIndex &operator=(const MSSourceIndex &other)

void attach(const MSSource &source)

Int &sourceId()

access to the source ID key, throws an exception if isNull() is False

Int &spectralWindowId()

access to the spectral window ID key, throws an exception if isNull() is False

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)

static Int compare (const Block<void*>& fieldPtrs, const Block<void*>& dataPtrs, const Block<Int>& dataTypes, Int index)

the specialized compare function to pass to the ColumnsIndex object. This supports -1 values for the SPECTRAL_WINDOW_ID

void attachIds()