Mercurial > hg > svcore
comparison plugin/PiperVampPluginFactory.h @ 1251:67aee57e32c8 3.0-integration
Merge from branch piper
author | Chris Cannam |
---|---|
date | Fri, 04 Nov 2016 14:57:03 +0000 |
parents | d45a16c232bd |
children | a99641535e02 |
comparison
equal
deleted
inserted
replaced
1241:c6bdf247016a | 1251:67aee57e32c8 |
---|---|
14 */ | 14 */ |
15 | 15 |
16 #ifndef SV_PIPER_VAMP_PLUGIN_FACTORY_H | 16 #ifndef SV_PIPER_VAMP_PLUGIN_FACTORY_H |
17 #define SV_PIPER_VAMP_PLUGIN_FACTORY_H | 17 #define SV_PIPER_VAMP_PLUGIN_FACTORY_H |
18 | 18 |
19 #ifdef HAVE_PIPER | |
20 | |
19 #include "FeatureExtractionPluginFactory.h" | 21 #include "FeatureExtractionPluginFactory.h" |
20 | 22 |
21 #include <QMutex> | 23 #include <QMutex> |
22 #include <vector> | 24 #include <vector> |
23 #include <map> | 25 #include <map> |
24 | 26 |
25 #include "base/Debug.h" | 27 #include "base/Debug.h" |
28 #include "base/HelperExecPath.h" | |
26 | 29 |
27 /** | 30 /** |
28 * FeatureExtractionPluginFactory type for Vamp plugins hosted in a | 31 * FeatureExtractionPluginFactory type for Vamp plugins hosted in a |
29 * separate process using Piper protocol. | 32 * separate process using Piper protocol. |
30 */ | 33 */ |
47 | 50 |
48 virtual QString getPluginCategory(QString identifier) override; | 51 virtual QString getPluginCategory(QString identifier) override; |
49 | 52 |
50 protected: | 53 protected: |
51 QMutex m_mutex; | 54 QMutex m_mutex; |
52 QStringList m_servers; // executable file paths | 55 QList<HelperExecPath::HelperExec> m_servers; // executable file paths |
53 std::map<QString, QString> m_origins; // plugin identifier -> server path | 56 std::map<QString, QString> m_origins; // plugin identifier -> server path |
54 std::map<QString, piper_vamp::PluginStaticData> m_pluginData; // identifier -> data | 57 std::map<QString, piper_vamp::PluginStaticData> m_pluginData; // identifier -> data |
55 std::map<QString, QString> m_taxonomy; // identifier -> category string | 58 std::map<QString, QString> m_taxonomy; // identifier -> category string |
56 | 59 |
57 void populate(QString &errorMessage); | 60 void populate(QString &errorMessage); |
58 void populateFrom(QString server, QString &errorMessage); | 61 void populateFrom(const HelperExecPath::HelperExec &, QString &errorMessage); |
59 | |
60 static QStringList getServerSuffixes(); | |
61 }; | 62 }; |
62 | 63 |
63 #endif | 64 #endif |
65 | |
66 #endif |