VSAProject.hxx
Go to the documentation of this file.00001
00002
00003
00004
00005
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
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
00061