casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
GBTPointModelFiller.h
Go to the documentation of this file.
00001 //# GBTPointModelFiller: Fill the pointingModel from the ANTENNA file
00002 //# Copyright (C) 2001
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$
00028 
00029 #ifndef NRAO_GBTPOINTMODELFILLER_H
00030 #define NRAO_GBTPOINTMODELFILLER_H
00031 
00032 #include <casa/aips.h>
00033 #include <tables/Tables/Table.h>
00034 
00035 //# Forward declarations
00036 namespace casa { //# NAMESPACE CASA - BEGIN
00037 class MeasurementSet;
00038 class TableRow;
00039 } //# NAMESPACE CASA - END
00040 
00041 #include <casa/namespace.h>
00042 
00043 class GBTAntennaFile;
00044 
00045 // <summary>
00046 // Fill the pointing model record from a GBTAntennaFile.
00047 // </summary>
00048 
00049 // <use visibility=local>
00050 
00051 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
00052 // </reviewed>
00053 
00054 // <prerequisite>
00055 //   <li> 
00056 // </prerequisite>
00057 //
00058 // <etymology>
00059 // 
00060 // </etymology>
00061 //
00062 // <synopsis>
00063 // </synopsis>
00064 //
00065 // <example>
00066 // </example>
00067 //
00068 // <motivation>
00069 // </motivation>
00070 //
00071 // <thrown>
00072 //    <li>
00073 //    <li>
00074 // </thrown>
00075 //
00076 
00077 class GBTPointModelFiller
00078 {
00079 public:
00080     // Attach this to the indicated MeasurementSet
00081     GBTPointModelFiller(MeasurementSet &ms);
00082 
00083     ~GBTPointModelFiller();
00084 
00085     // fill using the indicated antenna file
00086     void fill(const GBTAntennaFile &antennaFile);
00087 
00088     // the most recently filled row - always last in the table
00089     Int pointingModelId() {return (itsTable ? (Int(itsTable->nrow())-1) : -1);}
00090 
00091     // flush this table
00092     void flush() {itsTable->flush();}
00093 private:
00094     Table *itsTable;
00095     TableRow *itsTableRow;
00096 
00097     // undefined an inaccessable
00098     GBTPointModelFiller();
00099     GBTPointModelFiller(const GBTPointModelFiller &other);
00100     GBTPointModelFiller &operator=(const GBTPointModelFiller &other);
00101 
00102 };
00103 
00104 #endif
00105 
00106