diff OrthancServer/Sources/ServerToolbox.h @ 4591:ff8170d17d90 db-changes

moving all accesses to databases from IDatabaseWrapper to ITransaction
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 15 Mar 2021 15:30:42 +0100
parents d9473bd5ed43
children f0038043fb97 7053502fbf97
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerToolbox.h	Fri Mar 12 16:04:09 2021 +0100
+++ b/OrthancServer/Sources/ServerToolbox.h	Mon Mar 15 15:30:42 2021 +0100
@@ -33,6 +33,7 @@
 
 #pragma once
 
+#include "Database/IDatabaseWrapper.h"
 #include "ServerEnumerations.h"
 
 #include <boost/noncopyable.hpp>
@@ -41,17 +42,16 @@
 namespace Orthanc
 {
   class ServerContext;
-  class IDatabaseWrapper;
   class IStorageArea;
 
   namespace ServerToolbox
   {
     bool FindOneChildInstance(int64_t& result,
-                              IDatabaseWrapper& database,
+                              IDatabaseWrapper::ITransaction& transaction,
                               int64_t resource,
                               ResourceType type);
 
-    void ReconstructMainDicomTags(IDatabaseWrapper& database,
+    void ReconstructMainDicomTags(IDatabaseWrapper::ITransaction& transaction,
                                   IStorageArea& storageArea,
                                   ResourceType level);