diff OrthancServer/ServerIndex.h @ 2825:8aa6aef11b70

New configuration option "OverwriteInstances" to choose how duplicate SOPInstanceUID are handled
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 19 Sep 2018 15:24:01 +0200
parents d26dd081df97
children a27b0e9a3fd9
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.h	Tue Sep 18 16:31:42 2018 +0200
+++ b/OrthancServer/ServerIndex.h	Wed Sep 19 15:24:01 2018 +0200
@@ -70,9 +70,10 @@
     IDatabaseWrapper& db_;
     LeastRecentlyUsedIndex<int64_t, UnstableResourcePayload>  unstableResources_;
 
-    uint64_t currentStorageSize_;
-    uint64_t maximumStorageSize_;
+    uint64_t     currentStorageSize_;
+    uint64_t     maximumStorageSize_;
     unsigned int maximumPatients_;
+    bool         overwrite_;
 
     static void FlushThread(ServerIndex* that,
                             unsigned int threadSleep);
@@ -149,6 +150,8 @@
     // "count == 0" means no limit on the number of patients
     void SetMaximumPatientCount(unsigned int count);
 
+    void SetOverwriteInstances(bool overwrite);
+
     StoreStatus Store(std::map<MetadataType, std::string>& instanceMetadata,
                       DicomInstanceToStore& instance,
                       const Attachments& attachments);