Mercurial > hg > orthanc-databases
comparison Framework/Common/Dictionary.cpp @ 244:02cd7254c949
separating class InputFileValue from FileValue
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 13 Apr 2021 18:43:21 +0200 |
parents | 3236894320d6 |
children | 87f0e29a1dc1 |
comparison
equal
deleted
inserted
replaced
243:f5dc59c56e65 | 244:02cd7254c949 |
---|---|
20 | 20 |
21 | 21 |
22 #include "Dictionary.h" | 22 #include "Dictionary.h" |
23 | 23 |
24 #include "BinaryStringValue.h" | 24 #include "BinaryStringValue.h" |
25 #include "FileValue.h" | 25 #include "InputFileValue.h" |
26 #include "Integer64Value.h" | 26 #include "Integer64Value.h" |
27 #include "NullValue.h" | 27 #include "NullValue.h" |
28 #include "Utf8StringValue.h" | 28 #include "Utf8StringValue.h" |
29 | 29 |
30 #include <Logging.h> | 30 #include <Logging.h> |
102 | 102 |
103 | 103 |
104 void Dictionary::SetFileValue(const std::string& key, | 104 void Dictionary::SetFileValue(const std::string& key, |
105 const std::string& file) | 105 const std::string& file) |
106 { | 106 { |
107 SetValue(key, new FileValue(file)); | 107 SetValue(key, new InputFileValue(file)); |
108 } | 108 } |
109 | 109 |
110 | 110 |
111 void Dictionary::SetFileValue(const std::string& key, | 111 void Dictionary::SetFileValue(const std::string& key, |
112 const void* content, | 112 const void* content, |
113 size_t size) | 113 size_t size) |
114 { | 114 { |
115 SetValue(key, new FileValue(content, size)); | 115 SetValue(key, new InputFileValue(content, size)); |
116 } | 116 } |
117 | 117 |
118 | 118 |
119 void Dictionary::SetIntegerValue(const std::string& key, | 119 void Dictionary::SetIntegerValue(const std::string& key, |
120 int64_t value) | 120 int64_t value) |