Mercurial > hg > svcore
comparison plugin/PiperVampPluginFactory.h @ 1246:75aefcc9f07d piper
Use plugin scan results to inform the list requests issued to Piper servers
author | Chris Cannam |
---|---|
date | Thu, 03 Nov 2016 14:14:09 +0000 |
parents | 42a4b058f8ba |
children | d45a16c232bd |
comparison
equal
deleted
inserted
replaced
1245:0492e54ccd56 | 1246:75aefcc9f07d |
---|---|
21 #include <QMutex> | 21 #include <QMutex> |
22 #include <vector> | 22 #include <vector> |
23 #include <map> | 23 #include <map> |
24 | 24 |
25 #include "base/Debug.h" | 25 #include "base/Debug.h" |
26 #include "base/HelperExecPath.h" | |
26 | 27 |
27 /** | 28 /** |
28 * FeatureExtractionPluginFactory type for Vamp plugins hosted in a | 29 * FeatureExtractionPluginFactory type for Vamp plugins hosted in a |
29 * separate process using Piper protocol. | 30 * separate process using Piper protocol. |
30 */ | 31 */ |
47 | 48 |
48 virtual QString getPluginCategory(QString identifier) override; | 49 virtual QString getPluginCategory(QString identifier) override; |
49 | 50 |
50 protected: | 51 protected: |
51 QMutex m_mutex; | 52 QMutex m_mutex; |
52 QStringList m_servers; // executable file paths | 53 QList<HelperExecPath::HelperExec> m_servers; // executable file paths |
53 std::map<QString, QString> m_origins; // plugin identifier -> server path | 54 std::map<QString, QString> m_origins; // plugin identifier -> server path |
54 std::map<QString, piper_vamp::PluginStaticData> m_pluginData; // identifier -> data | 55 std::map<QString, piper_vamp::PluginStaticData> m_pluginData; // identifier -> data |
55 std::map<QString, QString> m_taxonomy; // identifier -> category string | 56 std::map<QString, QString> m_taxonomy; // identifier -> category string |
56 | 57 |
57 void populate(QString &errorMessage); | 58 void populate(QString &errorMessage); |
58 void populateFrom(QString server, QString &errorMessage); | 59 void populateFrom(const HelperExecPath::HelperExec &, QString &errorMessage); |
59 | |
60 static QStringList getServerSuffixes(); | |
61 }; | 60 }; |
62 | 61 |
63 #endif | 62 #endif |