diff audioDBws.h @ 171:bb934f91d85c powertable

Web services interface to the powertable functionality. * Implemented as a completely new SOAP method, called sequenceQuery * lightly tested with http://doc.gold.ac.uk/~mas01cr/poweradb.php (lacuna: need to pass relative-threshold and absolute-threshold always, even when they don't make sense.) Several uglinesses in the code, some of which will be resolved once all the various branches are merged into the trunk.
author mas01cr
date Wed, 14 Nov 2007 14:00:53 +0000
parents a5d5a55a412d
children d1b8b2dec37e
line wrap: on
line diff
--- a/audioDBws.h	Thu Nov 01 17:18:45 2007 +0000
+++ b/audioDBws.h	Wed Nov 14 14:00:53 2007 +0000
@@ -45,3 +45,20 @@
 
 // Query an existing adb database
 int adb__query(xsd__string dbName, xsd__string qKey, xsd__string keyList, xsd__string timesFileName, xsd__int qType, xsd__int qPos, xsd__int pointNN, xsd__int segNN, xsd__int segLen, struct adb__queryResponse &adbQueryResponse);
+
+struct adb__sequenceQueryParms {
+  xsd__string keyList;
+  xsd__string timesFileName;
+  xsd__string powerFileName;
+  xsd__int qPos;
+  xsd__int pointNN;
+  xsd__int segNN;
+  xsd__int segLen;
+  xsd__double relative_threshold;
+  xsd__double absolute_threshold;
+};
+
+// Perform a sequence query
+int adb__sequenceQuery(xsd__string dbName, xsd__string qKey, 
+		       struct adb__sequenceQueryParms *parms, 
+		       struct adb__queryResponse &adbQueryResponse);