casa
$Rev:20696$
|
00001 //# MSSysCalIndex: index into a MeasurementSet SYSCAL subtable 00002 //# Copyright (C) 2000,2002 00003 //# Associated Universities, Inc. Washington DC, USA. 00004 //# 00005 //# This library is free software; you can redistribute it and/or modify it 00006 //# under the terms of the GNU Library General Public License as published by 00007 //# the Free Software Foundation; either version 2 of the License, or (at your 00008 //# option) any later version. 00009 //# 00010 //# This library is distributed in the hope that it will be useful, but WITHOUT 00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00012 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00013 //# License for more details. 00014 //# 00015 //# You should have received a copy of the GNU Library General Public License 00016 //# along with this library; if not, write to the Free Software Foundation, 00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA. 00018 //# 00019 //# Correspondence concerning AIPS++ should be addressed as follows: 00020 //# Internet email: aips2-request@nrao.edu. 00021 //# Postal address: AIPS++ Project Office 00022 //# National Radio Astronomy Observatory 00023 //# 520 Edgemont Road 00024 //# Charlottesville, VA 22903-2475 USA 00025 //# 00026 //# 00027 //# $Id: MSSysCalIndex.h 18093 2004-11-30 17:51:10Z ddebonis $ 00028 00029 #ifndef MS_MSSYSCALINDEX_H 00030 #define MS_MSSYSCALINDEX_H 00031 00032 #include <ms/MeasurementSets/MSTableIndex.h> 00033 00034 #include <casa/Containers/RecordField.h> 00035 00036 namespace casa { //# NAMESPACE CASA - BEGIN 00037 00038 //# forward declarations 00039 class MSSysCal; 00040 00041 // <summary> 00042 // </summary> 00043 00044 // <use visibility=export> 00045 00046 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos=""> 00047 // </reviewed> 00048 00049 // <prerequisite> 00050 // <li> MeasurementSet 00051 // <li> MSTableIndex 00052 // </prerequisite> 00053 // 00054 // <etymology> 00055 // </etymology> 00056 // 00057 // <synopsis> 00058 // </synopsis> 00059 // 00060 // <example> 00061 // </example> 00062 // 00063 // <motivation> 00064 // </motivation> 00065 // 00066 // <thrown> 00067 // <li> 00068 // <li> 00069 // </thrown> 00070 // 00071 00072 class MSSysCalIndex : public MSTableIndex 00073 { 00074 public: 00075 // no index attached, use the attach function or assignment operator to change that 00076 MSSysCalIndex(); 00077 00078 // construct one using the indicated SYSCAL table 00079 MSSysCalIndex(const MSSysCal &sysCal); 00080 00081 // construct one from another 00082 MSSysCalIndex(const MSSysCalIndex &other); 00083 00084 virtual ~MSSysCalIndex(); 00085 00086 MSSysCalIndex &operator=(const MSSysCalIndex &other); 00087 00088 void attach(const MSSysCal &sysCal); 00089 00090 // access to the antenna ID key, throws an exception if isNull() is False 00091 Int &antennaId() {return *antennaId_p;} 00092 00093 // access to the feed ID key, throws an exception if isNull() is False 00094 Int &feedId() {return *feedId_p;} 00095 00096 // access to the spectral window ID key, throws an exception if isNull() is False 00097 Int &spectralWindowId() {return *spwId_p;} 00098 private: 00099 RecordFieldPtr<Int> antennaId_p, feedId_p, spwId_p; 00100 00101 void attachIds(); 00102 }; 00103 00104 00105 } //# NAMESPACE CASA - END 00106 00107 #endif 00108