Mercurial > hg > piper-vamp-js
diff VamPipePluginLibrary.h @ 88:6c4b43298968
Introduce a new layer to abstract away plugin construction, so plugins needing more constructor arguments can easily be dealt with
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Wed, 14 Sep 2016 17:58:41 +0100 |
parents | a6ab5fd80eb7 |
children | 4a5de1bb2c6a |
line wrap: on
line diff
--- a/VamPipePluginLibrary.h Wed Sep 14 14:58:44 2016 +0100 +++ b/VamPipePluginLibrary.h Wed Sep 14 17:58:41 2016 +0100 @@ -47,12 +47,12 @@ namespace vampipe { -class VamPipeAdapterBase; +class VamPipeAdapterInterface; class VamPipePluginLibrary { public: - VamPipePluginLibrary(std::vector<VamPipeAdapterBase *> pp); + VamPipePluginLibrary(std::vector<VamPipeAdapterInterface *> pp); const char *requestJson(const char *request) { return strdup(requestJsonImpl(request).c_str()); @@ -80,7 +80,7 @@ Vamp::HostExt::ConfigurationResponse configurePlugin(Vamp::HostExt:: ConfigurationRequest r) const; - std::map<std::string, VamPipeAdapterBase *> m_adapters; // pluginKey -> adapter + std::map<std::string, VamPipeAdapterInterface *> m_adapters; // pluginKey -> adapter CountingPluginHandleMapper m_mapper; bool m_useBase64; };