diff OrthancServer/Sources/ServerIndex.h @ 5061:e95fadefeb72

new MaximumStorageMode configuration
author Alain Mazy <am@osimis.io>
date Tue, 09 Aug 2022 17:57:38 +0200
parents 6fed78e13233
children 0ea402b4d901
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerIndex.h	Mon Aug 08 12:42:48 2022 +0200
+++ b/OrthancServer/Sources/ServerIndex.h	Tue Aug 09 17:57:38 2022 +0200
@@ -45,8 +45,9 @@
 
     LeastRecentlyUsedIndex<int64_t, UnstableResourcePayload>  unstableResources_;
 
-    uint64_t     maximumStorageSize_;
-    unsigned int maximumPatients_;
+    MaxStorageMode  maximumStorageMode_;
+    uint64_t        maximumStorageSize_;
+    unsigned int    maximumPatients_;
 
     static void FlushThread(ServerIndex* that,
                             unsigned int threadSleep);
@@ -75,6 +76,8 @@
     // "count == 0" means no limit on the number of patients
     void SetMaximumPatientCount(unsigned int count);
 
+    void SetMaximumStorageMode(MaxStorageMode mode);
+
     StoreStatus Store(std::map<MetadataType, std::string>& instanceMetadata,
                       const DicomMap& dicomSummary,
                       const Attachments& attachments,