comparison OrthancServer/Sources/ServerContext.h @ 5850:1980354c8113 find-refactoring

add level of interest to StatelessDatabaseOperations::LookupAttachment()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 29 Oct 2024 15:03:32 +0000
parents 58c549b881ae
children
comparison
equal deleted inserted replaced
5849:0f4345cbe558 5850:1980354c8113
354 DicomInstanceToStore* dicom, 354 DicomInstanceToStore* dicom,
355 StoreInstanceMode mode, 355 StoreInstanceMode mode,
356 bool isReconstruct = false); 356 bool isReconstruct = false);
357 357
358 void AnswerAttachment(RestApiOutput& output, 358 void AnswerAttachment(RestApiOutput& output,
359 ResourceType level,
359 const std::string& resourceId, 360 const std::string& resourceId,
360 FileContentType content); 361 FileContentType content);
361 362
362 void ChangeAttachmentCompression(const std::string& resourceId, 363 void ChangeAttachmentCompression(ResourceType level,
364 const std::string& resourceId,
363 FileContentType attachmentType, 365 FileContentType attachmentType,
364 CompressionType compression); 366 CompressionType compression);
365 367
366 void ReadDicomAsJson(Json::Value& result, 368 void ReadDicomAsJson(Json::Value& result,
367 const std::string& instancePublicId, 369 const std::string& instancePublicId,
391 393
392 // This method is for low-level operations on "/instances/.../attachments/..." 394 // This method is for low-level operations on "/instances/.../attachments/..."
393 void ReadAttachment(std::string& result, 395 void ReadAttachment(std::string& result,
394 int64_t& revision, 396 int64_t& revision,
395 std::string& attachmentId, 397 std::string& attachmentId,
398 ResourceType level,
396 const std::string& instancePublicId, 399 const std::string& instancePublicId,
397 FileContentType content, 400 FileContentType content,
398 bool uncompressIfNeeded, 401 bool uncompressIfNeeded,
399 bool skipCache = false); 402 bool skipCache = false);
400 403