Mercurial > hg > orthanc
comparison OrthancServer/Scheduler/StoreScuCommand.cpp @ 1427:d710ea64f0fd
Custom setting of the local AET during C-Store SCU (both in Lua and in the REST API)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 29 Jun 2015 12:42:54 +0200 |
parents | 6e7e5ed91c2d |
children | f967bdf8534e |
comparison
equal
deleted
inserted
replaced
1426:2cf9a12c995a | 1427:d710ea64f0fd |
---|---|
35 #include <glog/logging.h> | 35 #include <glog/logging.h> |
36 | 36 |
37 namespace Orthanc | 37 namespace Orthanc |
38 { | 38 { |
39 StoreScuCommand::StoreScuCommand(ServerContext& context, | 39 StoreScuCommand::StoreScuCommand(ServerContext& context, |
40 const std::string& localAet, | |
40 const RemoteModalityParameters& modality, | 41 const RemoteModalityParameters& modality, |
41 bool ignoreExceptions) : | 42 bool ignoreExceptions) : |
42 context_(context), | 43 context_(context), |
43 modality_(modality), | 44 modality_(modality), |
44 ignoreExceptions_(ignoreExceptions) | 45 ignoreExceptions_(ignoreExceptions), |
46 localAet_(localAet) | |
45 { | 47 { |
46 } | 48 } |
47 | 49 |
48 bool StoreScuCommand::Apply(ListOfStrings& outputs, | 50 bool StoreScuCommand::Apply(ListOfStrings& outputs, |
49 const ListOfStrings& inputs) | 51 const ListOfStrings& inputs) |
50 { | 52 { |
51 ReusableDicomUserConnection::Locker locker(context_.GetReusableDicomUserConnection(), modality_); | 53 ReusableDicomUserConnection::Locker locker(context_.GetReusableDicomUserConnection(), localAet_, modality_); |
52 | 54 |
53 for (ListOfStrings::const_iterator | 55 for (ListOfStrings::const_iterator |
54 it = inputs.begin(); it != inputs.end(); ++it) | 56 it = inputs.begin(); it != inputs.end(); ++it) |
55 { | 57 { |
56 LOG(INFO) << "Sending resource " << *it << " to modality \"" | 58 LOG(INFO) << "Sending resource " << *it << " to modality \"" |