ModelFactory Class Reference

#include <ModelFactory.h>

List of all members.

Public Member Functions

 ModelFactory (Connection &conn1, const string &intab, Connection &conn2)
 ~ModelFactory ()
GenModelnext ()
bool getGenomicSeq ()
void showRow (const Row &row, ostream &ous) const

Public Attributes

StoreQueryResult rslt
Query gquery
string gname
string * gseq
GenModelgmp
int ri

Static Public Attributes

static ofstream log
static int idcnt = 1


Constructor & Destructor Documentation

ModelFactory::ModelFactory ( Connection &  conn1,
const string &  intab,
Connection &  conn2 
)

conn1 for main query input, conn2 for genomic input from DB

Parameters:
intab. Is the input table of the allmodels schema.

References gquery, and rslt.

ModelFactory::~ModelFactory (  ) 

References gseq.


Member Function Documentation

GenModel * ModelFactory::next (  ) 

return 0 if no more or a pointer to a valid GenModel object. This method will skip invalid objects.

References getGenomicSeq(), gmp, gname, gseq, idcnt, log, ri, rslt, showRow(), string(), and GenModel::valid().

Referenced by writeResultToDatabase(), and writeResultToFile().

bool ModelFactory::getGenomicSeq (  ) 

return true for success false for failure

References gname, gquery, gseq, and string().

Referenced by next().

void ModelFactory::showRow ( const Row &  row,
ostream &  ous 
) const

References ri.

Referenced by next().


Member Data Documentation

StoreQueryResult ModelFactory::rslt

Referenced by ModelFactory(), and next().

Referenced by getGenomicSeq(), and ModelFactory().

Referenced by getGenomicSeq(), and next().

Referenced by getGenomicSeq(), next(), and ~ModelFactory().

Referenced by next().

Referenced by next(), and showRow().

ofstream ModelFactory::log [static]

Referenced by next().

int ModelFactory::idcnt = 1 [static]

Referenced by next().


The documentation for this class was generated from the following files:

Generated on Wed Aug 10 11:57:13 2011 for Softwares from Orpara by  doxygen 1.5.6