comparison VamPipePluginLibrary.cpp @ 19:0e1909abe921

Introduce a new layer to abstract away plugin construction, so plugins needing more constructor arguments can easily be dealt with
author Chris Cannam
date Wed, 14 Sep 2016 17:58:41 +0100
parents 171f92179c3e
children 40da19b655a7
comparison
equal deleted inserted replaced
18:6871a49ccf17 19:0e1909abe921
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