Mercurial > hg > piper-cpp
comparison bits/PluginHandleMapper.h @ 19:f379b0e9a8e1
Add (but don't yet use) the constant plugin handle mapper
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Fri, 20 May 2016 10:25:01 +0100 |
parents | aa61cb5c5754 |
children | 2d97883d20df |
comparison
equal
deleted
inserted
replaced
18:071c55f52c7d | 19:f379b0e9a8e1 |
---|---|
36 #define VAMPIPE_PLUGIN_HANDLE_MAPPER_H | 36 #define VAMPIPE_PLUGIN_HANDLE_MAPPER_H |
37 | 37 |
38 #include <vamp-hostsdk/Plugin.h> | 38 #include <vamp-hostsdk/Plugin.h> |
39 | 39 |
40 namespace vampipe { | 40 namespace vampipe { |
41 | |
41 class PluginHandleMapper | 42 class PluginHandleMapper |
42 { | 43 { |
43 public: | 44 public: |
44 class NotFound : virtual public std::runtime_error { | 45 class NotFound : virtual public std::runtime_error { |
45 public: | 46 public: |
47 }; | 48 }; |
48 | 49 |
49 virtual int32_t pluginToHandle(Vamp::Plugin *) = 0; // may throw NotFound | 50 virtual int32_t pluginToHandle(Vamp::Plugin *) = 0; // may throw NotFound |
50 virtual Vamp::Plugin *handleToPlugin(int32_t) = 0; // may throw NotFound | 51 virtual Vamp::Plugin *handleToPlugin(int32_t) = 0; // may throw NotFound |
51 }; | 52 }; |
53 | |
52 } | 54 } |
53 | 55 |
54 #endif | 56 #endif |
55 | 57 |