casa
$Rev:20696$
|
#include <MSSourceIndex.h>
Public Member Functions | |
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) |
Vector< Int > | matchSourceCode (const String &code) |
add for source code selection | |
Static Protected Member Functions | |
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. | |
Private Member Functions | |
void | attachIds () |
Private Attributes | |
ROMSSourceColumns * | msSourceCols_p |
Pointer to local ROMSSourceColumns object. | |
RecordFieldPtr< Int > | sourceId_p |
RecordFieldPtr< Int > | spwId_p |
Public interface
<h3>Review Status</h3><dl><dt>Date Reviewed:<dd>yyyy/mm/dd</dl>
Definition at line 73 of file MSSourceIndex.h.
no index attached, use the attach function or assignment operator to change that
casa::MSSourceIndex::MSSourceIndex | ( | const MSSource & | source | ) |
construct one using the indicated SOURCE table
casa::MSSourceIndex::MSSourceIndex | ( | const MSSourceIndex & | other | ) |
construct one from another
virtual casa::MSSourceIndex::~MSSourceIndex | ( | ) | [virtual] |
void casa::MSSourceIndex::attach | ( | const MSSource & | source | ) |
void casa::MSSourceIndex::attachIds | ( | ) | [private] |
static Int casa::MSSourceIndex::compare | ( | const Block< void * > & | fieldPtrs, |
const Block< void * > & | dataPtrs, | ||
const Block< Int > & | dataTypes, | ||
Int | index | ||
) | [static, protected] |
the specialized compare function to pass to the ColumnsIndex object.
This supports -1 values for the SPECTRAL_WINDOW_ID
Vector<Int> casa::MSSourceIndex::matchSourceCode | ( | const String & | code | ) |
add for source code selection
Vector<Int> casa::MSSourceIndex::matchSourceName | ( | const String & | name | ) |
Match a source name or list of source names to a set of SOURCE_ID's.
Vector<Int> casa::MSSourceIndex::matchSourceName | ( | const Vector< String > & | names | ) |
MSSourceIndex& casa::MSSourceIndex::operator= | ( | const MSSourceIndex & | other | ) |
Int& casa::MSSourceIndex::sourceId | ( | ) | [inline] |
access to the source ID key, throws an exception if isNull() is False
Definition at line 92 of file MSSourceIndex.h.
References sourceId_p.
Int& casa::MSSourceIndex::spectralWindowId | ( | ) | [inline] |
access to the spectral window ID key, throws an exception if isNull() is False
Definition at line 96 of file MSSourceIndex.h.
References spwId_p.
Pointer to local ROMSSourceColumns object.
Definition at line 116 of file MSSourceIndex.h.
RecordFieldPtr<Int> casa::MSSourceIndex::sourceId_p [private] |
Definition at line 118 of file MSSourceIndex.h.
Referenced by sourceId().
RecordFieldPtr<Int> casa::MSSourceIndex::spwId_p [private] |
Definition at line 118 of file MSSourceIndex.h.
Referenced by spectralWindowId().