Mercurial > hg > orthanc
comparison OrthancServer/Scheduler/StoreScuCommand.cpp @ 1997:f9f2aa1cc594
"MoveOriginatorID" can be specified for /modalities/.../store
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 25 May 2016 11:50:35 +0200 |
parents | 5011a597b6ce |
children | 2b1520efa282 |
comparison
equal
deleted
inserted
replaced
1996:66957f5c69ab | 1997:f9f2aa1cc594 |
---|---|
39 { | 39 { |
40 StoreScuCommand::StoreScuCommand(ServerContext& context, | 40 StoreScuCommand::StoreScuCommand(ServerContext& context, |
41 const std::string& localAet, | 41 const std::string& localAet, |
42 const RemoteModalityParameters& modality, | 42 const RemoteModalityParameters& modality, |
43 bool ignoreExceptions, | 43 bool ignoreExceptions, |
44 uint16_t moveMessageID) : | 44 uint16_t moveOriginatorID) : |
45 context_(context), | 45 context_(context), |
46 modality_(modality), | 46 modality_(modality), |
47 ignoreExceptions_(ignoreExceptions), | 47 ignoreExceptions_(ignoreExceptions), |
48 localAet_(localAet), | 48 localAet_(localAet), |
49 moveMessageID_(moveMessageID) | 49 moveOriginatorID_(moveOriginatorID) |
50 { | 50 { |
51 } | 51 } |
52 | 52 |
53 bool StoreScuCommand::Apply(ListOfStrings& outputs, | 53 bool StoreScuCommand::Apply(ListOfStrings& outputs, |
54 const ListOfStrings& inputs) | 54 const ListOfStrings& inputs) |
64 try | 64 try |
65 { | 65 { |
66 std::string dicom; | 66 std::string dicom; |
67 context_.ReadFile(dicom, *it, FileContentType_Dicom); | 67 context_.ReadFile(dicom, *it, FileContentType_Dicom); |
68 | 68 |
69 locker.GetConnection().Store(dicom, moveMessageID_); | 69 locker.GetConnection().Store(dicom, moveOriginatorID_); |
70 | 70 |
71 // Only chain with other commands if this command succeeds | 71 // Only chain with other commands if this command succeeds |
72 outputs.push_back(*it); | 72 outputs.push_back(*it); |
73 } | 73 } |
74 catch (OrthancException& e) | 74 catch (OrthancException& e) |