00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef ALGO_H
00015 #define ALGO_H
00016
00017 #include <qobject.h>
00018 #include <list>
00019 #include <db_cxx.h>
00020 #include <set>
00021
00022
00023
00024
00025 #include <string>
00026
00027 class TrapperDoc;
00028 class AlgoParam;
00029
00030 class Algo : public QObject
00031 {
00032 Q_OBJECT
00033 public:
00034 Algo(TrapperDoc * pDoc_, std::set< db_recno_t >& recnoList, AlgoParam* param = 0, QObject *parent = 0, const char *name = 0);
00035 virtual ~Algo();
00036 virtual void start() = 0;
00037 void select( db_recno_t recno, bool status );
00038
00039 protected:
00040 std::set< db_recno_t >& selectedReads;
00041 TrapperDoc * pDoc;
00042 AlgoParam* my_param;
00043 };
00044
00045
00046 #endif