Mercurial > hg > orthanc
comparison OrthancFramework/Sources/JobsEngine/Operations/LogJobOperation.cpp @ 4310:2ae905070221
renaming pure interface JobOperationValue as IJobOperationValue
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 09 Nov 2020 14:40:51 +0100 |
parents | b30a8de92ad9 |
children | d9473bd5ed43 |
comparison
equal
deleted
inserted
replaced
4309:73de065622ec | 4310:2ae905070221 |
---|---|
27 #include "StringOperationValue.h" | 27 #include "StringOperationValue.h" |
28 | 28 |
29 namespace Orthanc | 29 namespace Orthanc |
30 { | 30 { |
31 void LogJobOperation::Apply(JobOperationValues& outputs, | 31 void LogJobOperation::Apply(JobOperationValues& outputs, |
32 const JobOperationValue& input) | 32 const IJobOperationValue& input) |
33 { | 33 { |
34 switch (input.GetType()) | 34 switch (input.GetType()) |
35 { | 35 { |
36 case JobOperationValue::Type_String: | 36 case IJobOperationValue::Type_String: |
37 LOG(INFO) << "Job value: " | 37 LOG(INFO) << "Job value: " |
38 << dynamic_cast<const StringOperationValue&>(input).GetContent(); | 38 << dynamic_cast<const StringOperationValue&>(input).GetContent(); |
39 break; | 39 break; |
40 | 40 |
41 case JobOperationValue::Type_Null: | 41 case IJobOperationValue::Type_Null: |
42 LOG(INFO) << "Job value: (null)"; | 42 LOG(INFO) << "Job value: (null)"; |
43 break; | 43 break; |
44 | 44 |
45 default: | 45 default: |
46 LOG(INFO) << "Job value: (unsupport)"; | 46 LOG(INFO) << "Job value: (unsupport)"; |