Mercurial > hg > orthanc-databases
comparison Framework/Common/Utf8StringValue.h @ 186:6fe74f9a516e
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 16 Dec 2020 15:05:19 +0100 |
parents | 4cd7e45b671e |
children | 3236894320d6 |
comparison
equal
deleted
inserted
replaced
185:7c46155b5bb4 | 186:6fe74f9a516e |
---|---|
20 | 20 |
21 | 21 |
22 #pragma once | 22 #pragma once |
23 | 23 |
24 #include "IValue.h" | 24 #include "IValue.h" |
25 | |
26 #include <Compatibility.h> | |
25 | 27 |
26 namespace OrthancDatabases | 28 namespace OrthancDatabases |
27 { | 29 { |
28 // Represents an UTF-8 string | 30 // Represents an UTF-8 string |
29 class Utf8StringValue : public IValue | 31 class Utf8StringValue : public IValue |
49 const std::string& GetContent() const | 51 const std::string& GetContent() const |
50 { | 52 { |
51 return utf8_; | 53 return utf8_; |
52 } | 54 } |
53 | 55 |
54 virtual ValueType GetType() const | 56 virtual ValueType GetType() const ORTHANC_OVERRIDE |
55 { | 57 { |
56 return ValueType_Utf8String; | 58 return ValueType_Utf8String; |
57 } | 59 } |
58 | 60 |
59 virtual IValue* Convert(ValueType target) const; | 61 virtual IValue* Convert(ValueType target) const ORTHANC_OVERRIDE; |
60 | 62 |
61 virtual std::string Format() const | 63 virtual std::string Format() const ORTHANC_OVERRIDE |
62 { | 64 { |
63 return "[" + utf8_ + "]"; | 65 return "[" + utf8_ + "]"; |
64 } | 66 } |
65 }; | 67 }; |
66 } | 68 } |