diff OrthancServer/SQLiteDatabaseWrapper.h @ 3091:476cba12c2b0 db-changes

IDatabaseWrapper::GetChildrenMetadata()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 05 Jan 2019 15:08:53 +0100
parents 195ba4cbac3f
children
line wrap: on
line diff
--- a/OrthancServer/SQLiteDatabaseWrapper.h	Sat Jan 05 12:17:30 2019 +0100
+++ b/OrthancServer/SQLiteDatabaseWrapper.h	Sat Jan 05 15:08:53 2019 +0100
@@ -37,6 +37,7 @@
 
 #include "../Core/SQLite/Connection.h"
 #include "Search/Compatibility/ICreateInstance.h"
+#include "Search/Compatibility/IGetChildrenMetadata.h"
 #include "Search/Compatibility/ISetResourcesContent.h"
 #include "ServerToolbox.h"
 
@@ -55,6 +56,7 @@
   class SQLiteDatabaseWrapper :
     public IDatabaseWrapper,
     public Compatibility::ICreateInstance,
+    public Compatibility::IGetChildrenMetadata,
     public Compatibility::ISetResourcesContent
   {
   private:
@@ -332,15 +334,25 @@
                                 const std::string& patient,
                                 const std::string& study,
                                 const std::string& series,
-                                const std::string& instance)  ORTHANC_OVERRIDE
+                                const std::string& instance)
+      ORTHANC_OVERRIDE
     {
       return ICreateInstance::Apply
-        (*this, *this, result, instanceId, patient, study, series, instance);
+        (*this, result, instanceId, patient, study, series, instance);
     }
 
-    virtual void SetResourcesContent(const Orthanc::ResourcesContent& content)  ORTHANC_OVERRIDE
+    virtual void SetResourcesContent(const Orthanc::ResourcesContent& content)
+      ORTHANC_OVERRIDE
     {
       ISetResourcesContent::Apply(*this, content);
     }
+
+    virtual void GetChildrenMetadata(std::list<std::string>& target,
+                                     int64_t resourceId,
+                                     MetadataType metadata)
+      ORTHANC_OVERRIDE
+    {
+      IGetChildrenMetadata::Apply(*this, target, resourceId, metadata);
+    }
   };
 }