changeset 667:ae2e3d4c54a2 OrthancDicomWeb-1.17

Added a 'Server' entry in the DICOMWeb job content
author Alain Mazy <am@orthanc.team>
date Tue, 06 Aug 2024 09:33:08 +0200 (10 months ago)
parents 18e33869cce0
children 8e50b0b45233 cfc8e137bf35
files NEWS Plugin/DicomWebClient.cpp
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Tue Aug 06 09:22:19 2024 +0200
+++ b/NEWS	Tue Aug 06 09:33:08 2024 +0200
@@ -1,6 +1,8 @@
 Pending changes in the mainline
 ===============================
 
+* Added a "Server" entry in the DICOMWeb job content.
+
 
 Version 1.17 (2024-06-05)
 =========================
--- a/Plugin/DicomWebClient.cpp	Tue Aug 06 09:22:19 2024 +0200
+++ b/Plugin/DicomWebClient.cpp	Tue Aug 06 09:33:08 2024 +0200
@@ -727,6 +727,7 @@
         boost::mutex::scoped_lock lock(that_.mutex_);
         context.SetContent("InstancesCount", boost::lexical_cast<std::string>(that_.instances_.size()));
         context.SetContent("Resources", that_.GetResourcesForJobContent());
+        context.SetContent("Server", that_.GetServerName());
         serverName = that_.serverName_;
         
         startPosition = that_.position_;        
@@ -871,6 +872,11 @@
   {
     return resourcesForJobContent_;
   }
+
+  const std::string& GetServerName()
+  {
+    return serverName_;
+  }
 };