CurationTaskID.hxx
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007 #ifndef CURATIONTASK_H
00008 #define CURATIONTASK_H
00009
00010 #include <string>
00011
00012 #include "DataMethod.hxx"
00013 #include "Options.h"
00014
00016 template<typename DataType>
00017 class CurationTaskID : public DataMethod<DataType>
00018 {
00019 public:
00021 CurationTaskID()
00022 {
00023 DataMethod<DataType>::methodName = "CurationTaskID";
00024 Options options;
00025 mCuEventID = options.getCurationEvent();
00026 }
00027
00029 virtual ~CurationTaskID() { }
00030
00032 void setSource(IntMap& tbls, IntMap& cols, StringMap units) { }
00033
00035 void setTarget(IntMap& cols, StringMap units)
00036 {
00037 colNo = cols[0];
00038 }
00039
00041 void doit(TableData<DataType>& data, int row1, int row2)
00042 {
00043 for (int rowNo = row1; rowNo < row2; ++rowNo)
00044 {
00045 data.assign(colNo, rowNo, mCuEventID);
00046 }
00047 }
00048
00049 void doit2(TableData<DataType>& rawData, TableData<DataType>& data, int row1, int row2) { }
00050
00051 private:
00052 int colNo;
00053 std::string mCuEventID;
00054 };
00055
00056 #endif
00057
00058
00059
00060
00061