VSAProject.hxx

Go to the documentation of this file.
00001 
00002 
00003 
00004 //-----------------------------------------------------------------------------
00005 // CVS: $Revision: 6367 $, $Date: 2009-11-17 17:09:25 +0000 (Tue, 17 Nov 2009) $, $Author: EckhardSutorius $
00006 //-----------------------------------------------------------------------------
00007 #ifndef VSAPROJECT_H
00008 #define VSApROJECT_H
00009 
00010 #include <string>
00011 
00012 #include "DataMethod.hxx"
00013 #include "ProgrammeTable.h"
00014 //-----------------------------------------------------------------------------
00016 template<typename DataType>
00017 class VSAProject : public DataMethod<DataType>
00018 {
00019 public:
00021   VSAProject(const FitsFile& aFile) 
00022   { 
00023     DataMethod<DataType>::methodName = "VSAProject";
00024     mfileName = aFile.getFileName();
00025   }
00026 
00028   virtual ~VSAProject() { }
00029 
00031   void setSource(IntMap& tbls, IntMap& aCols, StringMap aUnits) { }
00032 
00034   void setTarget(IntMap&   aCols,
00035                  StringMap aUnits)
00036   {
00037     mProjectColNum = aCols[0];
00038   }
00039 
00041   void doit(TableData<DataType>& aData, int aFirstRow, int aLastRow)
00042   {
00043     for (int rowNum = aFirstRow; rowNum < aLastRow; ++rowNum)
00044     {
00045       aData.assign(mProjectColNum, rowNum, mProgTable.getProgrammeId(mfileName));
00046     }
00047   }
00048 
00049   // No data from raw data included
00050   void doit2(TableData<DataType>& rawData, TableData<DataType>& data, int row1, int row2) { }
00051 
00052 private:
00053   std::string mfileName;
00054   int mProjectColNum;
00056   ProgrammeTable mProgTable;
00057 };
00058 //-----------------------------------------------------------------------------
00059 #endif
00060 // 16-Nov-2009, ETWS: Original version.
00061 
Generated on Mon Oct 4 10:38:34 2010 for WfcamSrc by  doxygen 1.6.3