diff MySQL/Plugins/MySQLIndex.h @ 110:441a472bfd93

new extension implemented for MySQL: CreateInstance
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Jan 2019 16:28:43 +0100
parents 48d445f756db
children 1525539ce5d9
line wrap: on
line diff
--- a/MySQL/Plugins/MySQLIndex.h	Wed Jan 23 15:14:30 2019 +0100
+++ b/MySQL/Plugins/MySQLIndex.h	Wed Jan 23 16:28:43 2019 +0100
@@ -76,5 +76,19 @@
     virtual void DeleteResource(int64_t id);
 
     virtual int64_t GetLastChangeIndex();
+
+    virtual bool HasCreateInstance() const  ORTHANC_OVERRIDE
+    {
+      return true;
+    }
+
+#if ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT == 1
+    virtual void CreateInstance(OrthancPluginCreateInstanceResult& result,
+                                const char* hashPatient,
+                                const char* hashStudy,
+                                const char* hashSeries,
+                                const char* hashInstance)
+      ORTHANC_OVERRIDE;
+#endif
   };
 }