comparison VamPipePluginLibrary.h @ 99:dfd107ef991f

Replace exceptions throughout the JSON-handling and adapter code with string-arg error handling. No longer need exception handling enabled in Emscripten (with its consequent runtime overhead - though we still need to check whether this error handling regime is actually faster).
author Chris Cannam <c.cannam@qmul.ac.uk>
date Tue, 20 Sep 2016 16:35:47 +0100
parents 22a09aca4b4a
children
comparison
equal deleted inserted replaced
98:22a09aca4b4a 99:dfd107ef991f
69 private: 69 private:
70 std::string requestJsonImpl(std::string req); 70 std::string requestJsonImpl(std::string req);
71 std::string processRawImpl(int, const float *const *, int, int); 71 std::string processRawImpl(int, const float *const *, int, int);
72 72
73 Vamp::HostExt::ListResponse listPluginData() const; 73 Vamp::HostExt::ListResponse listPluginData() const;
74 Vamp::HostExt::LoadResponse loadPlugin(Vamp::HostExt::LoadRequest r) const; 74 Vamp::HostExt::LoadResponse loadPlugin(Vamp::HostExt::LoadRequest r,
75 std::string &err) const;
75 Vamp::HostExt::ConfigurationResponse configurePlugin(Vamp::HostExt:: 76 Vamp::HostExt::ConfigurationResponse configurePlugin(Vamp::HostExt::
76 ConfigurationRequest r) 77 ConfigurationRequest r,
78 std::string &err)
77 const; 79 const;
78 80
79 // map from pluginKey -> adapter 81 // map from pluginKey -> adapter
80 std::map<std::string, VamPipeAdapterInterface *> m_adapters; 82 std::map<std::string, VamPipeAdapterInterface *> m_adapters;
81 CountingPluginHandleMapper m_mapper; 83 CountingPluginHandleMapper m_mapper;