UkirtRunNum.hxx

Go to the documentation of this file.
00001 
00002 
00003 
00004 //-----------------------------------------------------------------------------
00005 // CVS: $Revision: 6286 $, $Date: 2009-11-06 09:47:45 +0000 (Fri, 06 Nov 2009) $, $Author: EckhardSutorius $
00006 //-----------------------------------------------------------------------------
00007 #ifndef UKIRTRUNNUM_H
00008 #define UKIRTRUNNUM_H
00009 
00010 #include "DataMethod.hxx"
00011 #include "DataOps.h"
00012 #include "FitsFile.h"
00013 //-----------------------------------------------------------------------------
00015 template<typename DataType>
00016 class UkirtRunNum : public DataMethod<DataType>
00017 {
00018 public:
00021   UkirtRunNum(const FitsFile& aFile)
00022   {
00023     DataMethod<DataType>::methodName = "UkirtRunNum";
00024     mRunNum = DataOps::getTelRunNo(aFile);
00025   }
00026 
00028   virtual ~UkirtRunNum() { }
00029 
00031   void setSource(IntMap& tbls, IntMap& cols, StringMap units) { }
00032 
00034   void setTarget(IntMap& cols, StringMap units) { mCol = cols[0]; }
00035 
00037   void doit(TableData<DataType>& data, int rowBegin, int rowEnd)
00038   {
00039     for (int row = rowBegin; row < rowEnd; ++row)
00040     {
00041       data.assign(mCol, row, mRunNum);
00042     }
00043   }
00044 
00045   // No data from raw data included
00046   void doit2(TableData<DataType>& rawData, TableData<DataType>& data, int row1, int row2) { }
00047 
00048 private:
00049   int mCol;
00050   std::string mRunNum;
00051 };
00052 //-----------------------------------------------------------------------------
00053 #endif
00054 //-----------------------------------------------------------------------------
00055 // Change log:
00056 //
00057 // 27-May-2004,  IAB: Original version.
00058 //  7-Apr-2008, ETWS: Upgraded to use new detection table layout.

Generated on Tue Jan 19 15:18:22 2010 for WfcamSrc by  doxygen 1.6.1