diff Plugins/Engine/OrthancPlugins.h @ 1644:939b921b2c81

plugin error dictionary
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Sep 2015 22:05:27 +0200
parents eb8fbcf008b5
children 1558b3226b18
line wrap: on
line diff
--- a/Plugins/Engine/OrthancPlugins.h	Wed Sep 23 14:42:20 2015 +0200
+++ b/Plugins/Engine/OrthancPlugins.h	Wed Sep 23 22:05:27 2015 +0200
@@ -32,6 +32,8 @@
 
 #pragma once
 
+#include "PluginsErrorDictionary.h"
+
 #if ORTHANC_PLUGINS_ENABLED != 1
 
 #include <boost/noncopyable.hpp>
@@ -40,6 +42,14 @@
 {
   class OrthancPlugins : public boost::noncopyable
   {
+  private:
+    PluginsErrorDictionary  dictionary_;
+
+  public:
+    PluginsErrorDictionary& GetErrorDictionary()
+    {
+      return dictionary_;
+    }
   };
 }
 
@@ -179,6 +189,8 @@
     PluginsManager& GetManager();
 
     const PluginsManager& GetManager() const;
+
+    PluginsErrorDictionary& GetErrorDictionary();
   };
 }