Mercurial > hg > orthanc
comparison OrthancServer/Internals/FindScp.cpp @ 1789:bdcc1dba4a53 worklists
optimization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 18 Nov 2015 16:38:08 +0100 |
parents | 6a2d507ef064 |
children | 4f01c9d73f02 |
comparison
equal
deleted
inserted
replaced
1788:6a2d507ef064 | 1789:bdcc1dba4a53 |
---|---|
184 | 184 |
185 if (responseCount <= static_cast<int>(data.answers_.GetSize())) | 185 if (responseCount <= static_cast<int>(data.answers_.GetSize())) |
186 { | 186 { |
187 // There are pending results that are still to be sent | 187 // There are pending results that are still to be sent |
188 response->DimseStatus = STATUS_Pending; | 188 response->DimseStatus = STATUS_Pending; |
189 | 189 *responseIdentifiers = data.answers_.ExtractDcmDataset(responseCount - 1); |
190 DcmFileFormat& fileFormat = data.answers_.GetAnswer(responseCount - 1).GetDcmtkObject(); | |
191 | |
192 // TODO Is there a way to avoid this copy? | |
193 *responseIdentifiers = new DcmDataset(*fileFormat.getDataset()); | |
194 } | 190 } |
195 else if (data.noCroppingOfResults_) | 191 else if (data.noCroppingOfResults_) |
196 { | 192 { |
197 // Success: All the results have been sent | 193 // Success: All the results have been sent |
198 response->DimseStatus = STATUS_Success; | 194 response->DimseStatus = STATUS_Success; |