comparison OrthancServer/ServerJobs/StorageCommitmentScpJob.cpp @ 3658:2d90dd30858c storage-commitment

providing job ID to the IJob::Step() methods
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 10 Feb 2020 16:44:26 +0100
parents 115f82775c46
children 08eb0f93c491
comparison
equal deleted inserted replaced
3657:115f82775c46 3658:2d90dd30858c
85 virtual bool IsAnswer() const 85 virtual bool IsAnswer() const
86 { 86 {
87 return false; 87 return false;
88 } 88 }
89 89
90 virtual bool Execute() 90 virtual bool Execute(const std::string& jobId) ORTHANC_OVERRIDE
91 { 91 {
92 if (hasFailureReason_) 92 if (hasFailureReason_)
93 { 93 {
94 throw OrthancException(ErrorCode_BadSequenceOfCalls); 94 throw OrthancException(ErrorCode_BadSequenceOfCalls);
95 } 95 }
187 virtual bool IsAnswer() const 187 virtual bool IsAnswer() const
188 { 188 {
189 return true; 189 return true;
190 } 190 }
191 191
192 virtual bool Execute() 192 virtual bool Execute(const std::string& jobId) ORTHANC_OVERRIDE
193 { 193 {
194 that_.Answer(); 194 that_.Answer();
195 return true; 195 return true;
196 } 196 }
197 197