Mercurial > hg > audiodb
comparison audioDB.h @ 146:c9c508be69b3 powertable
Define a power command-line option; use it to turn on the DB flag.
Also enforce strict ordering: only accept power files if the DB has the
flag set; error if they're provided and the DB doesn't have the flag.
author | mas01cr |
---|---|
date | Wed, 31 Oct 2007 10:20:09 +0000 |
parents | 7162a8e9ab12 |
children | a564e6d7a30c |
comparison
equal
deleted
inserted
replaced
145:7162a8e9ab12 | 146:c9c508be69b3 |
---|---|
25 #define COM_INSERT "--INSERT" | 25 #define COM_INSERT "--INSERT" |
26 #define COM_BATCHINSERT "--BATCHINSERT" | 26 #define COM_BATCHINSERT "--BATCHINSERT" |
27 #define COM_QUERY "--QUERY" | 27 #define COM_QUERY "--QUERY" |
28 #define COM_STATUS "--STATUS" | 28 #define COM_STATUS "--STATUS" |
29 #define COM_L2NORM "--L2NORM" | 29 #define COM_L2NORM "--L2NORM" |
30 #define COM_POWER "--POWER" | |
30 #define COM_DUMP "--DUMP" | 31 #define COM_DUMP "--DUMP" |
31 #define COM_SERVER "--SERVER" | 32 #define COM_SERVER "--SERVER" |
32 | 33 |
33 // parameters | 34 // parameters |
34 #define COM_CLIENT "--client" | 35 #define COM_CLIENT "--client" |
199 void query(const char* dbName, const char* inFile, adb__queryResponse *adbQueryResponse=0); | 200 void query(const char* dbName, const char* inFile, adb__queryResponse *adbQueryResponse=0); |
200 void status(const char* dbName, adb__statusResponse *adbStatusResponse=0); | 201 void status(const char* dbName, adb__statusResponse *adbStatusResponse=0); |
201 void ws_status(const char*dbName, char* hostport); | 202 void ws_status(const char*dbName, char* hostport); |
202 void ws_query(const char*dbName, const char *trackKey, const char* hostport); | 203 void ws_query(const char*dbName, const char *trackKey, const char* hostport); |
203 void l2norm(const char* dbName); | 204 void l2norm(const char* dbName); |
205 void power_flag(const char *dbName); | |
204 void dump(const char* dbName); | 206 void dump(const char* dbName); |
205 | 207 |
206 // web services | 208 // web services |
207 void startServer(); | 209 void startServer(); |
208 | 210 |