comparison OrthancFramework/Sources/JobsEngine/Operations/NullOperationValue.h @ 4304:50b0c69b653a

continued abi
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 06 Nov 2020 16:33:52 +0100
parents 2007ab69ac16
children 2ae905070221
comparison
equal deleted inserted replaced
4303:44b53a2c0a13 4304:50b0c69b653a
22 22
23 #pragma once 23 #pragma once
24 24
25 #include "JobOperationValue.h" 25 #include "JobOperationValue.h"
26 26
27 #include "../../Compatibility.h" // For ORTHANC_OVERRIDE
28
27 namespace Orthanc 29 namespace Orthanc
28 { 30 {
29 class ORTHANC_PUBLIC NullOperationValue : public JobOperationValue 31 class ORTHANC_PUBLIC NullOperationValue : public JobOperationValue
30 { 32 {
31 public: 33 public:
32 NullOperationValue() : 34 virtual Type GetType() const ORTHANC_OVERRIDE;
33 JobOperationValue(Type_Null) 35
34 { 36 virtual JobOperationValue* Clone() const ORTHANC_OVERRIDE;
35 }
36 37
37 virtual JobOperationValue* Clone() const ORTHANC_OVERRIDE 38 virtual void Serialize(Json::Value& target) const ORTHANC_OVERRIDE;
38 {
39 return new NullOperationValue;
40 }
41
42 virtual void Serialize(Json::Value& target) const ORTHANC_OVERRIDE
43 {
44 target = Json::objectValue;
45 target["Type"] = "Null";
46 }
47 }; 39 };
48 } 40 }