Mercurial > hg > orthanc
diff OrthancFramework/Sources/JobsEngine/JobStepResult.cpp @ 4300:b30a8de92ad9
abi continued
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 05 Nov 2020 19:33:18 +0100 |
parents | bf7b9edf6b81 |
children | d9473bd5ed43 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/JobsEngine/JobStepResult.cpp Thu Nov 05 18:24:50 2020 +0100 +++ b/OrthancFramework/Sources/JobsEngine/JobStepResult.cpp Thu Nov 05 19:33:18 2020 +0100 @@ -27,6 +27,23 @@ namespace Orthanc { + JobStepResult::JobStepResult() : + code_(JobStepCode_Failure), + timeout_(0), + error_(ErrorCode_InternalError) + { + } + + JobStepResult JobStepResult::Success() + { + return JobStepResult(JobStepCode_Success); + } + + JobStepResult JobStepResult::Continue() + { + return JobStepResult(JobStepCode_Continue); + } + JobStepResult JobStepResult::Retry(unsigned int timeout) { JobStepResult result(JobStepCode_Retry); @@ -55,6 +72,11 @@ return Failure(exception.GetErrorCode(), exception.HasDetails() ? exception.GetDetails() : NULL); } + + JobStepCode JobStepResult::GetCode() const + { + return code_; + } unsigned int JobStepResult::GetRetryTimeout() const