diff Framework/Plugins/IndexBackend.h @ 213:c2e4a909de0e

added IndexBackend::Register() to be used in all the index plugins
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 24 Mar 2021 15:59:23 +0100
parents a0c095a4ba7d
children 90eb271f85b2
line wrap: on
line diff
--- a/Framework/Plugins/IndexBackend.h	Wed Mar 24 15:47:14 2021 +0100
+++ b/Framework/Plugins/IndexBackend.h	Wed Mar 24 15:59:23 2021 +0100
@@ -22,7 +22,7 @@
 #pragma once
 
 #include "../Common/DatabaseManager.h"
-#include "DatabaseBackendAdapterV2.h"
+#include "IDatabaseBackend.h"
 
 #include <OrthancException.h>
 
@@ -339,7 +339,7 @@
                                 const char* hashPatient,
                                 const char* hashStudy,
                                 const char* hashSeries,
-                                const char* hashInstance)
+                                const char* hashInstance) ORTHANC_OVERRIDE
     {
       throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError);
     }
@@ -352,5 +352,7 @@
                                const char* hashStudy,
                                const char* hashSeries,
                                const char* hashInstance);
+
+    static void Register(IndexBackend& backend);
   };
 }