Mercurial > hg > orthanc-databases
comparison Framework/Common/Dictionary.cpp @ 14:9774802fd05f
PostgreSQLStorageArea working
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 09 Jul 2018 20:28:27 +0200 |
parents | 7cea966b6829 |
children | 714c5d2bee76 |
comparison
equal
deleted
inserted
replaced
13:927264a0c137 | 14:9774802fd05f |
---|---|
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 "Integer64Value.h" | 26 #include "Integer64Value.h" |
26 #include "NullValue.h" | 27 #include "NullValue.h" |
27 #include "Utf8StringValue.h" | 28 #include "Utf8StringValue.h" |
28 | 29 |
29 #include <Core/Logging.h> | 30 #include <Core/Logging.h> |
98 { | 99 { |
99 SetValue(key, new BinaryStringValue(binary)); | 100 SetValue(key, new BinaryStringValue(binary)); |
100 } | 101 } |
101 | 102 |
102 | 103 |
104 void Dictionary::SetFileValue(const std::string& key, | |
105 const std::string& file) | |
106 { | |
107 SetValue(key, new FileValue(file)); | |
108 } | |
109 | |
110 | |
111 void Dictionary::SetFileValue(const std::string& key, | |
112 const void* content, | |
113 size_t size) | |
114 { | |
115 SetValue(key, new FileValue(content, size)); | |
116 } | |
117 | |
118 | |
103 void Dictionary::SetIntegerValue(const std::string& key, | 119 void Dictionary::SetIntegerValue(const std::string& key, |
104 int64_t value) | 120 int64_t value) |
105 { | 121 { |
106 SetValue(key, new Integer64Value(value)); | 122 SetValue(key, new Integer64Value(value)); |
107 } | 123 } |