diff utilities/json-to-capnp.cpp @ 51:f4244a2d55ac

Introduce and use output id mappers
author Chris Cannam <c.cannam@qmul.ac.uk>
date Fri, 16 Sep 2016 15:10:57 +0100
parents a98ef4c2616b
children 38780f15ac8d
line wrap: on
line diff
--- a/utilities/json-to-capnp.cpp	Fri Sep 16 14:15:41 2016 +0100
+++ b/utilities/json-to-capnp.cpp	Fri Sep 16 15:10:57 2016 +0100
@@ -65,8 +65,9 @@
 
     } else if (type == "featureset") {
 	auto fs = message.initRoot<FeatureSet>();
+	PreservingPluginOutputIdMapper omapper;
 	VampnProto::buildFeatureSet
-	    (fs, VampJson::toFeatureSet(payload, serialisation));
+	    (fs, VampJson::toFeatureSet(payload, omapper, serialisation), omapper);
 
     } else if (type == "loadrequest") {
 	auto req = message.initRoot<LoadRequest>();