Mercurial > hg > audiodb
diff audioDB.h @ 27:0357114be285
add a forWrite flag to audioDB::initTables() so that clients can specify
that they don't need write access to the database. (Tested with STATUS
request)
author | mas01cr |
---|---|
date | Thu, 16 Aug 2007 11:39:46 +0000 |
parents | 0519fc406b29 |
children | 657e638b87ef |
line wrap: on
line diff
--- a/audioDB.h Thu Aug 16 11:19:35 2007 +0000 +++ b/audioDB.h Thu Aug 16 11:39:46 2007 +0000 @@ -221,7 +221,7 @@ void trackSequenceQueryNN(const char* dbName, const char* inFile, adb__queryResult *adbQueryResult=0); void trackSequenceQueryRad(const char* dbName, const char* inFile, adb__queryResult *adbQueryResult=0); - void initTables(const char* dbName, const char* inFile); + void initTables(const char* dbName, bool forWrite, const char* inFile); void unitNorm(double* X, unsigned d, unsigned n, double* qNorm); void unitNormAndInsertL2(double* X, unsigned dim, unsigned n, unsigned append); void normalize(double* X, int dim, int n);