Mercurial > hg > audiodb
diff audioDB.h @ 144:6ae986868114 powertable
Hack in power table filling for single track insert.
author | mas01cr |
---|---|
date | Tue, 30 Oct 2007 15:13:01 +0000 |
parents | c74048e9b569 |
children | 7162a8e9ab12 |
line wrap: on
line diff
--- a/audioDB.h Tue Oct 30 14:39:12 2007 +0000 +++ b/audioDB.h Tue Oct 30 15:13:01 2007 +0000 @@ -125,6 +125,8 @@ const char *output; const char *timesFileName; ifstream *timesFile; + const char *powerFileName; + int powerfd; int dbfid; int infid; @@ -154,6 +156,7 @@ unsigned queryPoint; unsigned usingQueryPoint; unsigned usingTimes; + unsigned usingPower; unsigned isClient; unsigned isServer; unsigned port; @@ -176,6 +179,7 @@ void unitNorm(double* X, unsigned d, unsigned n, double* qNorm); void unitNormAndInsertL2(double* X, unsigned dim, unsigned n, unsigned append); void insertTimeStamps(unsigned n, ifstream* timesFile, double* timesdata); + void insertPowerData(unsigned n, int powerfd, double *powerdata); unsigned getKeyPos(char* key); public: @@ -214,6 +218,8 @@ output(0), \ timesFileName(0), \ timesFile(0), \ + powerFileName(0), \ + powerfd(0), \ dbfid(0), \ infid(0), \ db(0), \ @@ -235,6 +241,7 @@ queryPoint(0), \ usingQueryPoint(0), \ usingTimes(0), \ + usingPower(0), \ isClient(0), \ isServer(0), \ port(0), \