diff OrthancServer/ServerIndex.h @ 3813:aaaa442bfe39 transcoding

moving SetOverwriteInstances from ServerIndex to ServerContext
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 07 Apr 2020 14:03:33 +0200
parents 2a170a8f1faf
children
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.h	Tue Apr 07 13:54:57 2020 +0200
+++ b/OrthancServer/ServerIndex.h	Tue Apr 07 14:03:33 2020 +0200
@@ -71,7 +71,6 @@
 
     uint64_t     maximumStorageSize_;
     unsigned int maximumPatients_;
-    bool         overwrite_;
     std::unique_ptr<MainDicomTagsRegistry>  mainDicomTagsRegistry_;
 
     static void FlushThread(ServerIndex* that,
@@ -139,11 +138,10 @@
     // "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);
+                      const Attachments& attachments,
+                      bool overwrite);
 
     void GetGlobalStatistics(/* out */ uint64_t& diskSize,
                              /* out */ uint64_t& uncompressedSize,