diff OrthancServer/main.cpp @ 1285:5730f374e4e6

Access to called AET and remote AET from Lua scripts
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 03 Feb 2015 15:00:42 +0100
parents d6a65dc6d0ac
children 6e7e5ed91c2d
line wrap: on
line diff
--- a/OrthancServer/main.cpp	Tue Feb 03 14:07:07 2015 +0100
+++ b/OrthancServer/main.cpp	Tue Feb 03 15:00:42 2015 +0100
@@ -72,7 +72,8 @@
   virtual void Handle(const std::string& dicomFile,
                       const DicomMap& dicomSummary,
                       const Json::Value& dicomJson,
-                      const std::string& remoteAet)
+                      const std::string& remoteAet,
+                      const std::string& calledAet)
   {
     if (dicomFile.size() > 0)
     {
@@ -81,6 +82,7 @@
       toStore.SetSummary(dicomSummary);
       toStore.SetJson(dicomJson);
       toStore.SetRemoteAet(remoteAet);
+      toStore.SetCalledAet(calledAet);
 
       std::string id;
       server_.Store(id, toStore);