ModelFactory.h

Go to the documentation of this file.
00001 #ifndef MODELFACTORY_H
00002 #define MODELFACTORY_H
00003 
00004 #include <mysql++.h>
00005 #include "GenModel.h"
00006 #include <iostream>
00007 #include <fstream>
00008 
00009 using namespace std;
00010 using namespace mysqlpp;
00011 
00012 // helper function
00013 //void showMysqlRow(const Row &row, ostream &ous);
00014 
00015 class ModelFactory {
00016    public:
00020       ModelFactory(Connection &conn1, const string &intab, Connection &conn2);
00021       ~ModelFactory();
00026       GenModel* next();
00029       bool getGenomicSeq();
00030       void showRow(const Row &row, ostream &ous) const;
00031 
00032       //UseQueryResult *rslt;
00033       StoreQueryResult rslt;
00034       Query gquery;
00035       string gname; // genomic sequence string id
00036       string *gseq;
00037       GenModel* gmp;
00038       int ri; // row index
00039 
00040       static ofstream log;
00041       static int idcnt;
00042 };
00043 
00044 #endif

Generated on Wed Aug 10 11:56:52 2011 for Softwares from Orpara by  doxygen 1.5.6