Mercurial > hg > orthanc
diff OrthancServer/Sources/ServerJobs/DicomMoveScuJob.cpp @ 5025:afa427f65444
Added an Asynchronous mode to /modalities/../move
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 21 Jun 2022 10:55:45 +0200 |
parents | 6eff25f70121 |
children | 0ea402b4d901 |
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerJobs/DicomMoveScuJob.cpp Wed Jun 15 15:40:07 2022 +0200 +++ b/OrthancServer/Sources/ServerJobs/DicomMoveScuJob.cpp Tue Jun 21 10:55:45 2022 +0200 @@ -107,7 +107,8 @@ query.GetAnswer(query.GetSize() - 1).Remove(DICOM_TAG_SPECIFIC_CHARACTER_SET); } - + // this method is used to implement the retrieve part of a Q&R + // it keeps only the main dicom tags from the C-Find answer void DicomMoveScuJob::AddFindAnswer(const DicomMap& answer) { DicomMap item; @@ -122,6 +123,13 @@ AddCommand(new Command(*this, answer)); } + // this method is used to implement a C-Move + // it keeps all tags from the C-Move query + void DicomMoveScuJob::AddQuery(const DicomMap& query) + { + AddToQuery(query_, query); + AddCommand(new Command(*this, query)); + } void DicomMoveScuJob::AddFindAnswer(QueryRetrieveHandler& query, size_t i)