Mercurial > hg > audiodb
diff audioDB.h @ 227:083956accbce refactoring
And now, the big one: two into one will go.
* Reporter abstract base class;
* Two instantiations of same, replicating the point accumulating and
report functionality of trackSequenceQueryNN() and
trackSequenceQueryRad();
* adjust trackSequenceQueryNN() to
- include radius threshold test if radius is non-zero;
- use new Reporter argument for accumulating matches;
- move report() call into query();
* new VERB_LOG macro to take away zillions of std::cerr << things;
* we can now delete trackSequenceQueryRad() entirely.
WOOHOO!
author | mas01cr |
---|---|
date | Thu, 06 Dec 2007 14:41:07 +0000 |
parents | e2e561eef3d6 |
children | acafe033b962 |
line wrap: on
line diff
--- a/audioDB.h Wed Dec 05 13:51:34 2007 +0000 +++ b/audioDB.h Thu Dec 06 14:41:07 2007 +0000 @@ -114,6 +114,7 @@ off_t dbSize; } dbTableHeaderT, *dbTableHeaderPtr; +class Reporter; class audioDB{ @@ -196,8 +197,7 @@ void read_data(int track, double **data_buffer_p, size_t *data_buffer_size_p); void set_up_query(double **qp, double **vqp, double **qnp, double **vqnp, double **qpp, double **vqpp, double *mqdp, unsigned int *nvp); void set_up_db(double **snp, double **vsnp, double **spp, double **vspp, double **mddp, unsigned int *dvp); - void trackSequenceQueryNN(const char* dbName, const char* inFile, adb__queryResponse *adbQueryResponse=0); - void trackSequenceQueryRad(const char* dbName, const char* inFile, adb__queryResponse *adbQueryResponse=0); + void trackSequenceQueryNN(const char* dbName, const char* inFile, Reporter *reporter); void initDBHeader(const char *dbName); void initInputFile(const char *inFile);