Mercurial > hg > orthanc
comparison OrthancServer/ServerJobs/SplitStudyJob.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 |
---|---|
65 } | 65 } |
66 | 66 |
67 | 67 |
68 bool SplitStudyJob::HandleInstance(const std::string& instance) | 68 bool SplitStudyJob::HandleInstance(const std::string& instance) |
69 { | 69 { |
70 if (!HasTrailingStep()) | |
71 { | |
72 throw OrthancException(ErrorCode_BadSequenceOfCalls, | |
73 "AddTrailingStep() should have been called after AddSourceSeries()"); | |
74 } | |
75 | |
70 /** | 76 /** |
71 * Retrieve the DICOM instance to be modified | 77 * Retrieve the DICOM instance to be modified |
72 **/ | 78 **/ |
73 | 79 |
74 std::unique_ptr<ParsedDicomFile> modified; | 80 std::unique_ptr<ParsedDicomFile> modified; |