Mercurial > hg > orthanc-databases
comparison Framework/Plugins/DatabaseBackendAdapterV2.cpp @ 366:cd9521e04249 attach-custom-data
DatabaseBackendAdapterV4: added support for customData + revision when not already done
author | Alain Mazy <am@osimis.io> |
---|---|
date | Thu, 15 Sep 2022 18:12:34 +0200 |
parents | 6b18d3fbee82 |
children | f18e46d7dbf8 |
comparison
equal
deleted
inserted
replaced
365:7671fa7f099e | 366:cd9521e04249 |
---|---|
182 int32_t contentType, | 182 int32_t contentType, |
183 uint64_t uncompressedSize, | 183 uint64_t uncompressedSize, |
184 const std::string& uncompressedHash, | 184 const std::string& uncompressedHash, |
185 int32_t compressionType, | 185 int32_t compressionType, |
186 uint64_t compressedSize, | 186 uint64_t compressedSize, |
187 const std::string& compressedHash) ORTHANC_OVERRIDE | 187 const std::string& compressedHash, |
188 const std::string& /*customData*/) ORTHANC_OVERRIDE | |
188 { | 189 { |
189 OrthancPluginAttachment attachment; | 190 OrthancPluginAttachment attachment; |
190 attachment.uuid = uuid.c_str(); | 191 attachment.uuid = uuid.c_str(); |
191 attachment.contentType = contentType; | 192 attachment.contentType = contentType; |
192 attachment.uncompressedSize = uncompressedSize; | 193 attachment.uncompressedSize = uncompressedSize; |
214 int32_t contentType, | 215 int32_t contentType, |
215 uint64_t uncompressedSize, | 216 uint64_t uncompressedSize, |
216 const std::string& uncompressedHash, | 217 const std::string& uncompressedHash, |
217 int32_t compressionType, | 218 int32_t compressionType, |
218 uint64_t compressedSize, | 219 uint64_t compressedSize, |
219 const std::string& compressedHash) ORTHANC_OVERRIDE | 220 const std::string& compressedHash, |
221 const std::string& /*customData*/) ORTHANC_OVERRIDE | |
220 { | 222 { |
221 if (allowedAnswers_ != AllowedAnswers_All && | 223 if (allowedAnswers_ != AllowedAnswers_All && |
222 allowedAnswers_ != AllowedAnswers_Attachment) | 224 allowedAnswers_ != AllowedAnswers_Attachment) |
223 { | 225 { |
224 throw std::runtime_error("Cannot answer with an attachment in the current state"); | 226 throw std::runtime_error("Cannot answer with an attachment in the current state"); |