Line data Source code
1 : //# SolvableVJMRec.cc: Implementation of SolvableVJMRec.h 2 : //# Copyright (C) 1996,1997,1998,2000,2003 3 : //# Associated Universities, Inc. Washington DC, USA. 4 : //# 5 : //# This library is free software; you can redistribute it and/or modify it 6 : //# under the terms of the GNU Library General Public License as published by 7 : //# the Free Software Foundation; either version 2 of the License, or (at your 8 : //# option) any later version. 9 : //# 10 : //# This library is distributed in the hope that it will be useful, but WITHOUT 11 : //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 : //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 13 : //# License for more details. 14 : //# 15 : //# You should have received a copy of the GNU Library General Public License 16 : //# along with this library; if not, write to the Free Software Foundation, 17 : //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA. 18 : //# 19 : //# Correspondence concerning AIPS++ should be addressed as follows: 20 : //# Internet email: aips2-request@nrao.edu. 21 : //# Postal address: AIPS++ Project Office 22 : //# National Radio Astronomy Observatory 23 : //# 520 Edgemont Road 24 : //# Charlottesville, VA 22903-2475 USA 25 : //# 26 : //# $Id$ 27 : //---------------------------------------------------------------------------- 28 : 29 : #include <synthesis/CalTables/FVisJonesMRec.h> 30 : #include <msvis/MSVis/MSCalEnums.h> 31 : 32 : using namespace casacore; 33 : namespace casa { //# NAMESPACE CASA - BEGIN 34 : 35 : #define AddField(Class,Type,Field,Name) \ 36 : void Class::define##Field (const Type& Field) { \ 37 : Record newRec; \ 38 : newRec.define (MSC::fieldName (MSC::Name), Field); \ 39 : addRec (newRec); \ 40 : } \ 41 : void Class::get##Field (Type& Field) { \ 42 : record().get (MSC::fieldName (MSC::Name), Field); \ 43 : } 44 : 45 0 : FVisJonesMRec::FVisJonesMRec() : TimeVarVisJonesMRec() 46 : { 47 0 : }; 48 : 49 0 : FVisJonesMRec::FVisJonesMRec (const Record& inpRec) : 50 0 : TimeVarVisJonesMRec (inpRec) 51 : { 52 0 : }; 53 : 54 0 : AddField(FVisJonesMRec,Float,RotMeas,ROT_MEASURE); 55 0 : AddField(FVisJonesMRec,Float,RotMeasErr,ROT_MEASURE_ERROR); 56 : 57 0 : FVisJonesIonoMRec::FVisJonesIonoMRec() : FVisJonesMRec() 58 : { 59 0 : }; 60 : 61 0 : FVisJonesIonoMRec::FVisJonesIonoMRec (const Record& inpRec) : 62 0 : FVisJonesMRec (inpRec) 63 : { 64 0 : }; 65 : 66 0 : AddField(FVisJonesIonoMRec,Float,TEC,IONOSPH_TEC); 67 0 : AddField(FVisJonesIonoMRec,Float,TECErr,IONOSPH_TEC_ERROR); 68 : 69 : } //# NAMESPACE CASA - END 70 :