Mercurial > hg > piper-cpp
diff utilities/json-to-capnp.cpp @ 6:d8358afe3f2c
Update build
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Fri, 13 May 2016 16:28:26 +0100 |
parents | 6e8607ebad03 |
children | f379b0e9a8e1 |
line wrap: on
line diff
--- a/utilities/json-to-capnp.cpp Fri May 13 13:48:59 2016 +0100 +++ b/utilities/json-to-capnp.cpp Fri May 13 16:28:26 2016 +0100 @@ -1,6 +1,6 @@ #include "VampJson.h" -#include "vampipe-convert.h" +#include "VampnProto.h" #include <iostream> #include <sstream> @@ -55,17 +55,17 @@ } else if (type == "feature") { auto f = message.initRoot<Feature>(); - VampSDKConverter::buildFeature + VampnProto::buildFeature (f, VampJson::toFeature(payload)); } else if (type == "featureset") { auto fs = message.initRoot<FeatureSet>(); - VampSDKConverter::buildFeatureSet + VampnProto::buildFeatureSet (fs, VampJson::toFeatureSet(payload)); } else if (type == "loadrequest") { auto req = message.initRoot<LoadRequest>(); - VampSDKConverter::buildLoadRequest + VampnProto::buildLoadRequest (req, VampJson::toLoadRequest(payload)); } else if (type == "loadresponse") { @@ -76,30 +76,30 @@ } else if (type == "outputdescriptor") { auto od = message.initRoot<OutputDescriptor>(); - VampSDKConverter::buildOutputDescriptor + VampnProto::buildOutputDescriptor (od, VampJson::toOutputDescriptor(payload)); } else if (type == "parameterdescriptor") { auto pd = message.initRoot<ParameterDescriptor>(); - VampSDKConverter::buildParameterDescriptor + VampnProto::buildParameterDescriptor (pd, VampJson::toParameterDescriptor(payload)); } else if (type == "pluginconfiguration") { auto pc = message.initRoot<PluginConfiguration>(); auto config = VampJson::toPluginConfiguration(payload); - VampSDKConverter::buildPluginConfiguration(pc, config); + VampnProto::buildPluginConfiguration(pc, config); } else if (type == "pluginstaticdata") { auto pc = message.initRoot<PluginStaticData>(); auto sd = VampJson::toPluginStaticData(payload); - VampSDKConverter::buildPluginStaticData(pc, sd); + VampnProto::buildPluginStaticData(pc, sd); } else if (type == "processblock") { throw VampJson::Failure("not implemented yet"); ///!!! } else if (type == "realtime") { auto b = message.initRoot<RealTime>(); - VampSDKConverter::buildRealTime + VampnProto::buildRealTime (b, VampJson::toRealTime(payload)); } else if (type == "valueextents") {