UkirtRunNum.hxx
Go to the documentation of this file.00001
00002
00003
00004
00005
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
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
00056
00057
00058