changeset 454:d6262c77e5a5 outputid-string-in-featureset

Begin plugin output id / index mapping for use in feature sets
author Chris Cannam
date Fri, 16 Sep 2016 14:13:21 +0100
parents 22b29720da41
children 5c07a86abddd
files vamp-hostsdk/RequestResponse.h
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/vamp-hostsdk/RequestResponse.h	Wed Sep 14 17:35:41 2016 +0100
+++ b/vamp-hostsdk/RequestResponse.h	Fri Sep 16 14:13:21 2016 +0100
@@ -223,7 +223,7 @@
  *
  * A structure that bundles the data returned by a process call and by
  * Plugin::getRemainingFeatures(). This is simply a FeatureSet
- * wrapper, named for symmetry with the other request-response pairs.
+ * wrapper that happens to reference the plugin as well.
  *
  * \see Plugin::process(), Plugin::getRemainingFeatures()
  *
@@ -235,9 +235,10 @@
 struct ProcessResponse
 {
 public:
-    ProcessResponse() // empty by default
-    { }
+    ProcessResponse() : // invalid by default
+        plugin(0) { }
 
+    Plugin *plugin;
     Plugin::FeatureSet features;
 };