Mercurial > hg > orthanc-databases
diff 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 |
line wrap: on
line diff
--- a/Framework/Common/Dictionary.cpp Mon Jul 09 18:42:34 2018 +0200 +++ b/Framework/Common/Dictionary.cpp Mon Jul 09 20:28:27 2018 +0200 @@ -22,6 +22,7 @@ #include "Dictionary.h" #include "BinaryStringValue.h" +#include "FileValue.h" #include "Integer64Value.h" #include "NullValue.h" #include "Utf8StringValue.h" @@ -100,6 +101,21 @@ } + void Dictionary::SetFileValue(const std::string& key, + const std::string& file) + { + SetValue(key, new FileValue(file)); + } + + + void Dictionary::SetFileValue(const std::string& key, + const void* content, + size_t size) + { + SetValue(key, new FileValue(content, size)); + } + + void Dictionary::SetIntegerValue(const std::string& key, int64_t value) {