comparison OrthancServer/ServerJobs/MergeStudyJob.cpp @ 3940:3661e2a72482 transcoding

safeguard in merge/split job
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 18 May 2020 17:41:05 +0200
parents 023b2a9f3aa1
children 771dbd9eb3bd
comparison
equal deleted inserted replaced
3939:c205f670098e 3940:3661e2a72482
79 } 79 }
80 80
81 81
82 bool MergeStudyJob::HandleInstance(const std::string& instance) 82 bool MergeStudyJob::HandleInstance(const std::string& instance)
83 { 83 {
84 if (!HasTrailingStep())
85 {
86 throw OrthancException(ErrorCode_BadSequenceOfCalls,
87 "AddTrailingStep() should have been called after AddSourceXXX()");
88 }
89
84 /** 90 /**
85 * Retrieve the DICOM instance to be modified 91 * Retrieve the DICOM instance to be modified
86 **/ 92 **/
87 93
88 std::unique_ptr<ParsedDicomFile> modified; 94 std::unique_ptr<ParsedDicomFile> modified;