comparison bits/PluginHandleMapper.h @ 11:aa61cb5c5754

Use mapper
author Chris Cannam <c.cannam@qmul.ac.uk>
date Tue, 17 May 2016 11:15:25 +0100
parents c8451896c40e
children f379b0e9a8e1
comparison
equal deleted inserted replaced
10:c8451896c40e 11:aa61cb5c5754
44 class NotFound : virtual public std::runtime_error { 44 class NotFound : virtual public std::runtime_error {
45 public: 45 public:
46 NotFound() : runtime_error("plugin or handle not found in mapper") { } 46 NotFound() : runtime_error("plugin or handle not found in mapper") { }
47 }; 47 };
48 48
49 virtual uint32_t pluginToHandle(Vamp::Plugin *) = 0; // may throw NotFound 49 virtual int32_t pluginToHandle(Vamp::Plugin *) = 0; // may throw NotFound
50 virtual Vamp::Plugin *handleToPlugin(uint32_t) = 0; // may throw NotFound 50 virtual Vamp::Plugin *handleToPlugin(int32_t) = 0; // may throw NotFound
51 }; 51 };
52 } 52 }
53 53
54 #endif 54 #endif
55 55