comparison checker/knownplugins.h @ 19:c80c55cabfcd

Untabify
author Chris Cannam
date Tue, 01 Nov 2016 15:16:08 +0000
parents 25e00373f597
children c1081e8d26a7
comparison
equal deleted inserted replaced
18:7eff522b23ae 19:c80c55cabfcd
40 { 40 {
41 typedef std::vector<std::string> stringlist; 41 typedef std::vector<std::string> stringlist;
42 42
43 public: 43 public:
44 enum PluginType { 44 enum PluginType {
45 VampPlugin, 45 VampPlugin,
46 LADSPAPlugin, 46 LADSPAPlugin,
47 DSSIPlugin 47 DSSIPlugin
48 }; 48 };
49 49
50 KnownPlugins(std::string helperExecutableName, 50 KnownPlugins(std::string helperExecutableName,
51 PluginCandidates::LogCallback *cb = 0); 51 PluginCandidates::LogCallback *cb = 0);
52 52
53 std::vector<PluginType> getKnownPluginTypes() const { 53 std::vector<PluginType> getKnownPluginTypes() const {
54 return { VampPlugin, LADSPAPlugin, DSSIPlugin }; 54 return { VampPlugin, LADSPAPlugin, DSSIPlugin };
55 }; 55 };
56 56
57 std::string getTagFor(PluginType type) const { 57 std::string getTagFor(PluginType type) const {
58 return m_known.at(type).tag; 58 return m_known.at(type).tag;
59 } 59 }
60 60
61 stringlist getCandidateLibrariesFor(PluginType type) const { 61 stringlist getCandidateLibrariesFor(PluginType type) const {
62 return m_candidates.getCandidateLibrariesFor(getTagFor(type)); 62 return m_candidates.getCandidateLibrariesFor(getTagFor(type));
63 } 63 }
64 64
65 std::string getFailureReport() const; 65 std::string getFailureReport() const;
66 66
67 private: 67 private:
68 struct TypeRec { 68 struct TypeRec {
69 std::string tag; 69 std::string tag;
70 stringlist path; 70 stringlist path;
71 std::string descriptor; 71 std::string descriptor;
72 }; 72 };
73 std::map<PluginType, TypeRec> m_known; 73 std::map<PluginType, TypeRec> m_known;
74 74
75 stringlist expandConventionalPath(PluginType type, std::string var); 75 stringlist expandConventionalPath(PluginType type, std::string var);
76 std::string getDefaultPath(PluginType type); 76 std::string getDefaultPath(PluginType type);