Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerContext.h @ 5080:d7274e43ea7c attach-custom-data
allow plugins to store a customData in the Attachments table to e.g. store custom paths without requiring an external DB
author | Alain Mazy <am@osimis.io> |
---|---|
date | Thu, 08 Sep 2022 17:42:08 +0200 |
parents | d4e5ca0c9307 |
children | 8279eaab0d1d |
comparison
equal
deleted
inserted
replaced
5079:4366b4c41441 | 5080:d7274e43ea7c |
---|---|
266 | 266 |
267 void PublishDicomCacheMetrics(); | 267 void PublishDicomCacheMetrics(); |
268 | 268 |
269 // This method must only be called from "ServerIndex"! | 269 // This method must only be called from "ServerIndex"! |
270 void RemoveFile(const std::string& fileUuid, | 270 void RemoveFile(const std::string& fileUuid, |
271 FileContentType type); | 271 FileContentType type, |
272 const std::string& customData); | |
272 | 273 |
273 // This DicomModification object is intended to be used as a | 274 // This DicomModification object is intended to be used as a |
274 // "rules engine" when de-identifying logs for C-Find, C-Get, and | 275 // "rules engine" when de-identifying logs for C-Find, C-Get, and |
275 // C-Move queries (new in Orthanc 1.8.2) | 276 // C-Move queries (new in Orthanc 1.8.2) |
276 DicomModification logsDeidentifierRules_; | 277 DicomModification logsDeidentifierRules_; |
323 return compressionEnabled_; | 324 return compressionEnabled_; |
324 } | 325 } |
325 | 326 |
326 bool AddAttachment(int64_t& newRevision, | 327 bool AddAttachment(int64_t& newRevision, |
327 const std::string& resourceId, | 328 const std::string& resourceId, |
329 ResourceType resourceType, | |
328 FileContentType attachmentType, | 330 FileContentType attachmentType, |
329 const void* data, | 331 const void* data, |
330 size_t size, | 332 size_t size, |
331 bool hasOldRevision, | 333 bool hasOldRevision, |
332 int64_t oldRevision, | 334 int64_t oldRevision, |
344 void AnswerAttachment(RestApiOutput& output, | 346 void AnswerAttachment(RestApiOutput& output, |
345 const std::string& resourceId, | 347 const std::string& resourceId, |
346 FileContentType content); | 348 FileContentType content); |
347 | 349 |
348 void ChangeAttachmentCompression(const std::string& resourceId, | 350 void ChangeAttachmentCompression(const std::string& resourceId, |
351 ResourceType resourceType, | |
349 FileContentType attachmentType, | 352 FileContentType attachmentType, |
350 CompressionType compression); | 353 CompressionType compression); |
351 | 354 |
352 void ReadDicomAsJson(Json::Value& result, | 355 void ReadDicomAsJson(Json::Value& result, |
353 const std::string& instancePublicId, | 356 const std::string& instancePublicId, |