comparison vamp-support/RequestOrResponse.h @ 97:427c4c725085

Bring in the Request/Response classes that were in the Vamp SDK, adding them to vamp-support in here instead
author Chris Cannam <c.cannam@qmul.ac.uk>
date Thu, 13 Oct 2016 18:05:35 +0100
parents 81e1c48e97f9
children 5b113c87b6e6
comparison
equal deleted inserted replaced
96:215c9fb6b7a4 97:427c4c725085
34 34
35 #ifndef PIPER_REQUEST_OR_RESPONSE_H 35 #ifndef PIPER_REQUEST_OR_RESPONSE_H
36 #define PIPER_REQUEST_OR_RESPONSE_H 36 #define PIPER_REQUEST_OR_RESPONSE_H
37 37
38 #include "RequestResponseType.h" 38 #include "RequestResponseType.h"
39 39 #include "PluginStaticData.h"
40 #include <vamp-hostsdk/PluginStaticData.h> 40 #include "RequestResponse.h"
41 #include <vamp-hostsdk/RequestResponse.h>
42 41
43 #include <string> 42 #include <string>
44 #include <vector> 43 #include <vector>
45 44
46 namespace piper { 45 namespace piper_vamp {
47 46
48 class RequestOrResponse 47 class RequestOrResponse
49 { 48 {
50 public: 49 public:
51 enum Direction { 50 enum Direction {
69 RRType type; 68 RRType type;
70 bool success; 69 bool success;
71 std::string errorText; 70 std::string errorText;
72 RpcId id; 71 RpcId id;
73 72
74 Vamp::HostExt::ListResponse listResponse; 73 ListResponse listResponse;
75 Vamp::HostExt::LoadRequest loadRequest; 74 LoadRequest loadRequest;
76 Vamp::HostExt::LoadResponse loadResponse; 75 LoadResponse loadResponse;
77 Vamp::HostExt::ConfigurationRequest configurationRequest; 76 ConfigurationRequest configurationRequest;
78 Vamp::HostExt::ConfigurationResponse configurationResponse; 77 ConfigurationResponse configurationResponse;
79 Vamp::HostExt::ProcessRequest processRequest; 78 ProcessRequest processRequest;
80 Vamp::HostExt::ProcessResponse processResponse; 79 ProcessResponse processResponse;
81 Vamp::HostExt::FinishRequest finishRequest; 80 FinishRequest finishRequest;
82 Vamp::HostExt::ProcessResponse finishResponse; 81 FinishResponse finishResponse;
83 }; 82 };
84 83
85 } 84 }
86 85
87 #endif 86 #endif