comparison Framework/Common/FileValue.h @ 243:f5dc59c56e65

simplification
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 13 Apr 2021 17:53:53 +0200
parents 3236894320d6
children 02cd7254c949
comparison
equal deleted inserted replaced
242:b97a537f4613 243:f5dc59c56e65
46 size_t size) 46 size_t size)
47 { 47 {
48 content_.assign(reinterpret_cast<const char*>(buffer), size); 48 content_.assign(reinterpret_cast<const char*>(buffer), size);
49 } 49 }
50 50
51 void SwapContent(std::string& content)
52 {
53 content_.swap(content);
54 }
55
56 void SetContent(const std::string& content)
57 {
58 content_ = content;
59 }
60
61 std::string& GetContent() 51 std::string& GetContent()
62 { 52 {
63 return content_; 53 return content_;
64 } 54 }
65 55
82 { 72 {
83 return ValueType_File; 73 return ValueType_File;
84 } 74 }
85 75
86 virtual IValue* Convert(ValueType target) const ORTHANC_OVERRIDE; 76 virtual IValue* Convert(ValueType target) const ORTHANC_OVERRIDE;
87
88 virtual std::string Format() const ORTHANC_OVERRIDE;
89 }; 77 };
90 } 78 }