diff OrthancServer/Sources/ServerIndex.h @ 4563:bb1c365f9e44 db-changes

end of refactoring read-only transactions
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 05 Mar 2021 16:11:11 +0100
parents e19f11e08226
children 3495a3d97ab6
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerIndex.h	Fri Mar 05 15:37:53 2021 +0100
+++ b/OrthancServer/Sources/ServerIndex.h	Fri Mar 05 16:11:11 2021 +0100
@@ -190,27 +190,8 @@
     void SetGlobalProperty(GlobalProperty property,
                            const std::string& value);
 
-    // Only applicable at the instance level
-    bool GetAllMainDicomTags(DicomMap& result,
-                             const std::string& instancePublicId);
-
-    bool LookupResourceType(ResourceType& type,
-                            const std::string& publicId);
-
-    unsigned int GetDatabaseVersion();
-
-    bool LookupParent(std::string& target,
-                      const std::string& publicId,
-                      ResourceType parentType);
-
     void ReconstructInstance(const ParsedDicomFile& dicom);
 
-    void ApplyLookupResources(std::vector<std::string>& resourcesId,
-                              std::vector<std::string>* instancesId,  // Can be NULL if not needed
-                              const DatabaseLookup& lookup,
-                              ResourceType queryLevel,
-                              size_t limit);
-
 
 
     /***
@@ -299,6 +280,11 @@
         db_.GetChildrenPublicId(target, id);
       }
 
+      unsigned int GetDatabaseVersion()
+      {
+        return db_.GetDatabaseVersion();
+      }
+
       void GetExportedResources(std::list<ExportedResource>& target /*out*/,
                                 bool& done /*out*/,
                                 int64_t since,
@@ -534,5 +520,24 @@
                           const std::string& publicId,
                           ResourceType expectedType,
                           ResourceType levelOfInterest);
+
+    // Only applicable at the instance level
+    bool GetAllMainDicomTags(DicomMap& result,
+                             const std::string& instancePublicId);
+
+    bool LookupResourceType(ResourceType& type,
+                            const std::string& publicId);
+
+    unsigned int GetDatabaseVersion();
+
+    bool LookupParent(std::string& target,
+                      const std::string& publicId,
+                      ResourceType parentType);
+
+    void ApplyLookupResources(std::vector<std::string>& resourcesId,
+                              std::vector<std::string>* instancesId,  // Can be NULL if not needed
+                              const DatabaseLookup& lookup,
+                              ResourceType queryLevel,
+                              size_t limit);
   };
 }