diff OrthancServer/ServerContext.cpp @ 695:c59bc408fb10

parameter to disable the computation of the MD5
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Feb 2014 13:58:00 +0100
parents 2d0a347e8cfc
children 4c1860179cc5
line wrap: on
line diff
--- a/OrthancServer/ServerContext.cpp	Wed Feb 05 13:26:19 2014 +0100
+++ b/OrthancServer/ServerContext.cpp	Wed Feb 05 13:58:00 2014 +0100
@@ -269,4 +269,10 @@
     return Store(resultPublicId, dicom.GetDicom(), dicomBuffer, dicomSize);
   }
 
+  void ServerContext::SetStoreMD5ForAttachments(bool storeMD5)
+  {
+    LOG(INFO) << "Storing MD5 for attachments: " << (storeMD5 ? "yes" : "no");
+    accessor_.SetStoreMD5(storeMD5);
+  }
+
 }