Mercurial > hg > orthanc
comparison OrthancFramework/Sources/JobsEngine/Operations/StringOperationValue.h @ 4202:2007ab69ac16
moving ORTHANC_FORCE_INLINE and ORTHANC_OVERRIDE from Enumerations.h to Compatibility.h
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 17 Sep 2020 08:35:11 +0200 |
parents | 2d5209153b32 |
children | 50b0c69b653a |
comparison
equal
deleted
inserted
replaced
4201:2d5209153b32 | 4202:2007ab69ac16 |
---|---|
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 #include <string> | 29 #include <string> |
28 | 30 |
29 namespace Orthanc | 31 namespace Orthanc |
30 { | 32 { |
31 class ORTHANC_PUBLIC StringOperationValue : public JobOperationValue | 33 class ORTHANC_PUBLIC StringOperationValue : public JobOperationValue |
38 JobOperationValue(JobOperationValue::Type_String), | 40 JobOperationValue(JobOperationValue::Type_String), |
39 content_(content) | 41 content_(content) |
40 { | 42 { |
41 } | 43 } |
42 | 44 |
43 virtual JobOperationValue* Clone() const | 45 virtual JobOperationValue* Clone() const ORTHANC_OVERRIDE |
44 { | 46 { |
45 return new StringOperationValue(content_); | 47 return new StringOperationValue(content_); |
46 } | 48 } |
47 | 49 |
48 const std::string& GetContent() const | 50 const std::string& GetContent() const |
49 { | 51 { |
50 return content_; | 52 return content_; |
51 } | 53 } |
52 | 54 |
53 virtual void Serialize(Json::Value& target) const | 55 virtual void Serialize(Json::Value& target) const ORTHANC_OVERRIDE |
54 { | 56 { |
55 target = Json::objectValue; | 57 target = Json::objectValue; |
56 target["Type"] = "String"; | 58 target["Type"] = "String"; |
57 target["Content"] = content_; | 59 target["Content"] = content_; |
58 } | 60 } |