Mercurial > hg > audiodb
diff audioDB.h @ 169:cdd441dcc9a8
Better error detection (and messages) on invalid feature files
Factor out commonality of dealing with the input file (in
audioDB::initTables and audioDB::batchinsert) into initInputFile(); call
it appropriately.
author | mas01cr |
---|---|
date | Thu, 08 Nov 2007 14:18:47 +0000 |
parents | ea6936b82915 |
children | 2826339b4e92 f9d16137e704 |
line wrap: on
line diff
--- a/audioDB.h Wed Nov 07 12:03:28 2007 +0000 +++ b/audioDB.h Thu Nov 08 14:18:47 2007 +0000 @@ -171,6 +171,7 @@ void trackSequenceQueryRad(const char* dbName, const char* inFile, adb__queryResponse *adbQueryResponse=0); void initDBHeader(const char *dbName, bool forWrite); + void initInputFile(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);