diff OrthancServer/Scheduler/StoreScuCommand.cpp @ 1907:5011a597b6ce

Support of Move Originator Message ID (0000,1031) in C-Store responses driven by C-Move
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 07 Jan 2016 11:28:19 +0100
parents b1291df2f780
children f9f2aa1cc594
line wrap: on
line diff
--- a/OrthancServer/Scheduler/StoreScuCommand.cpp	Tue Jan 05 17:45:27 2016 +0100
+++ b/OrthancServer/Scheduler/StoreScuCommand.cpp	Thu Jan 07 11:28:19 2016 +0100
@@ -40,11 +40,13 @@
   StoreScuCommand::StoreScuCommand(ServerContext& context,
                                    const std::string& localAet,
                                    const RemoteModalityParameters& modality,
-                                   bool ignoreExceptions) : 
+                                   bool ignoreExceptions,
+                                   uint16_t moveMessageID) : 
     context_(context),
     modality_(modality),
     ignoreExceptions_(ignoreExceptions),
-    localAet_(localAet)
+    localAet_(localAet),
+    moveMessageID_(moveMessageID)
   {
   }
 
@@ -63,7 +65,8 @@
       {
         std::string dicom;
         context_.ReadFile(dicom, *it, FileContentType_Dicom);
-        locker.GetConnection().Store(dicom);
+
+        locker.GetConnection().Store(dicom, moveMessageID_);
 
         // Only chain with other commands if this command succeeds
         outputs.push_back(*it);