diff Plugins/Engine/PluginsManager.h @ 888:d44b845c1c89 plugins

recursive scan for plugins
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 14 Jun 2014 19:47:51 +0200
parents 4066e6f2d134
children 690aeb4cb899
line wrap: on
line diff
--- a/Plugins/Engine/PluginsManager.h	Sat Jun 14 19:20:38 2014 +0200
+++ b/Plugins/Engine/PluginsManager.h	Sat Jun 14 19:47:51 2014 +0200
@@ -35,14 +35,14 @@
 #include "SharedLibrary.h"
 #include "../OrthancCPlugin/OrthancCPlugin.h"
 
-#include <list>
+#include <map>
 
 namespace Orthanc
 {
   class PluginsManager : boost::noncopyable
   {
   private:
-    typedef std::list<SharedLibrary*>  Plugins;
+    typedef std::map<std::string, SharedLibrary*>  Plugins;
 
     OrthancPluginContext  context_;
     Plugins  plugins_;
@@ -53,5 +53,8 @@
     ~PluginsManager();
 
     void RegisterPlugin(const std::string& path);
+
+    void ScanFolderForPlugins(const std::string& path,
+                              bool isRecursive);
   };
 }