comparison 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
comparison
equal deleted inserted replaced
1284:21ea32170764 1285:5730f374e4e6
70 } 70 }
71 71
72 virtual void Handle(const std::string& dicomFile, 72 virtual void Handle(const std::string& dicomFile,
73 const DicomMap& dicomSummary, 73 const DicomMap& dicomSummary,
74 const Json::Value& dicomJson, 74 const Json::Value& dicomJson,
75 const std::string& remoteAet) 75 const std::string& remoteAet,
76 const std::string& calledAet)
76 { 77 {
77 if (dicomFile.size() > 0) 78 if (dicomFile.size() > 0)
78 { 79 {
79 DicomInstanceToStore toStore; 80 DicomInstanceToStore toStore;
80 toStore.SetBuffer(dicomFile); 81 toStore.SetBuffer(dicomFile);
81 toStore.SetSummary(dicomSummary); 82 toStore.SetSummary(dicomSummary);
82 toStore.SetJson(dicomJson); 83 toStore.SetJson(dicomJson);
83 toStore.SetRemoteAet(remoteAet); 84 toStore.SetRemoteAet(remoteAet);
85 toStore.SetCalledAet(calledAet);
84 86
85 std::string id; 87 std::string id;
86 server_.Store(id, toStore); 88 server_.Store(id, toStore);
87 } 89 }
88 } 90 }