comparison Plugins/Engine/PluginsManager.h @ 897:bafc9d592632 plugins

REST callbacks are working
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 17 Jun 2014 17:43:39 +0200
parents c4053ac5db04
children 7000fc86fe62
comparison
equal deleted inserted replaced
896:c4053ac5db04 897:bafc9d592632
40 40
41 namespace Orthanc 41 namespace Orthanc
42 { 42 {
43 class PluginsManager : boost::noncopyable 43 class PluginsManager : boost::noncopyable
44 { 44 {
45 public:
46 typedef std::list< std::pair<std::string, OrthancPluginRestCallback> > RestCallbacks;
47
45 private: 48 private:
46 typedef std::map<std::string, SharedLibrary*> Plugins; 49 typedef std::map<std::string, SharedLibrary*> Plugins;
47 typedef std::list<OrthancPluginRestCallback> RestCallbacks;
48
49 OrthancPluginContext context_; 50 OrthancPluginContext context_;
50 Plugins plugins_; 51 Plugins plugins_;
51 RestCallbacks restCallbacks_; 52 RestCallbacks restCallbacks_;
52 53
53 static void RegisterRestCallback(const OrthancPluginContext* context, 54 static void RegisterRestCallback(const OrthancPluginContext* context,
61 62
62 void RegisterPlugin(const std::string& path); 63 void RegisterPlugin(const std::string& path);
63 64
64 void ScanFolderForPlugins(const std::string& path, 65 void ScanFolderForPlugins(const std::string& path,
65 bool isRecursive); 66 bool isRecursive);
67
68 const RestCallbacks& GetRestCallbacks() const
69 {
70 return restCallbacks_;
71 }
66 }; 72 };
67 } 73 }