comparison VamPipePluginLibrary.cpp @ 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 40da19b655a7
comparison
equal deleted inserted replaced
87:2fbefc82d460 88:6c4b43298968
62 throw VampJson::Failure("object expected for content field"); 62 throw VampJson::Failure("object expected for content field");
63 } 63 }
64 return j; 64 return j;
65 } 65 }
66 66
67 VamPipePluginLibrary::VamPipePluginLibrary(vector<VamPipeAdapterBase *> pp) : 67 VamPipePluginLibrary::VamPipePluginLibrary(vector<VamPipeAdapterInterface *> pp) :
68 m_useBase64(false) 68 m_useBase64(false)
69 { 69 {
70 for (VamPipeAdapterBase *p: pp) { 70 for (VamPipeAdapterInterface *p: pp) {
71 string key = p->getStaticData().pluginKey; 71 string key = p->getStaticData().pluginKey;
72 m_adapters[key] = p; 72 m_adapters[key] = p;
73 } 73 }
74 } 74 }
75 75