Mercurial > hg > piper-cpp
diff utilities/vampipe-convert.cpp @ 55:38780f15ac8d
Make RequestResponse types more consistent by adding plugin to ConfigurationResponse and introducing a FinishRequest
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Mon, 19 Sep 2016 13:35:56 +0100 |
parents | 524a6d5ee813 |
children | 815e94fedc1c |
line wrap: on
line diff
--- a/utilities/vampipe-convert.cpp Fri Sep 16 16:34:00 2016 +0100 +++ b/utilities/vampipe-convert.cpp Mon Sep 19 13:35:56 2016 +0100 @@ -113,7 +113,7 @@ rr.processRequest = VampJson::toVampRequest_Process(j, mapper, serialisation); break; case RRType::Finish: - rr.finishPlugin = VampJson::toVampRequest_Finish(j, mapper); + rr.finishRequest = VampJson::toVampRequest_Finish(j, mapper); break; case RRType::NotValid: break; @@ -148,7 +148,7 @@ (rr.processRequest, mapper, serialisation); break; case RRType::Finish: - j = VampJson::fromVampRequest_Finish(rr.finishPlugin, mapper); + j = VampJson::fromVampRequest_Finish(rr.finishRequest, mapper); break; case RRType::NotValid: break; @@ -186,7 +186,7 @@ rr.loadResponse = VampJson::toVampResponse_Load(j, mapper); break; case RRType::Configure: - rr.configurationResponse = VampJson::toVampResponse_Configure(j); + rr.configurationResponse = VampJson::toVampResponse_Configure(j, mapper); break; case RRType::Process: rr.processResponse = VampJson::toVampResponse_Process(j, mapper, serialisation); @@ -226,7 +226,8 @@ j = VampJson::fromVampResponse_Load(rr.loadResponse, mapper); break; case RRType::Configure: - j = VampJson::fromVampResponse_Configure(rr.configurationResponse); + j = VampJson::fromVampResponse_Configure(rr.configurationResponse, + mapper); break; case RRType::Process: j = VampJson::fromVampResponse_Process @@ -271,7 +272,7 @@ VampnProto::readVampRequest_Process(rr.processRequest, reader, mapper); break; case RRType::Finish: - VampnProto::readVampRequest_Finish(rr.finishPlugin, reader, mapper); + VampnProto::readVampRequest_Finish(rr.finishRequest, reader, mapper); break; case RRType::NotValid: break; @@ -302,7 +303,7 @@ VampnProto::buildVampRequest_Process(builder, rr.processRequest, mapper); break; case RRType::Finish: - VampnProto::buildVampRequest_Finish(builder, rr.finishPlugin, mapper); + VampnProto::buildVampRequest_Finish(builder, rr.finishRequest, mapper); break; case RRType::NotValid: break; @@ -334,7 +335,7 @@ break; case RRType::Configure: VampnProto::readVampResponse_Configure(rr.configurationResponse, - reader); + reader, mapper); break; case RRType::Process: VampnProto::readVampResponse_Process(rr.processResponse, reader, mapper); @@ -370,7 +371,7 @@ VampnProto::buildVampResponse_Load(builder, rr.loadResponse, mapper); break; case RRType::Configure: - VampnProto::buildVampResponse_Configure(builder, rr.configurationResponse); + VampnProto::buildVampResponse_Configure(builder, rr.configurationResponse, mapper); break; case RRType::Process: VampnProto::buildVampResponse_Process(builder, rr.processResponse, mapper);