comparison OrthancServer/Sources/OrthancInitialization.cpp @ 4495:fa2311f94d9f

IStorageArea::ReadRange()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 04 Feb 2021 18:01:07 +0100
parents 64f06e7d5fc7
children 7b99e8bb8246
comparison
equal deleted inserted replaced
4494:39192eb9b43d 4495:fa2311f94d9f
378 { 378 {
379 throw OrthancException(ErrorCode_UnknownResource); 379 throw OrthancException(ErrorCode_UnknownResource);
380 } 380 }
381 } 381 }
382 382
383 virtual IMemoryBuffer* ReadRange(const std::string& uuid,
384 FileContentType type,
385 uint64_t start /* inclusive */,
386 uint64_t end /* exclusive */) ORTHANC_OVERRIDE
387 {
388 if (type != FileContentType_Dicom)
389 {
390 return storage_.ReadRange(uuid, type, start, end);
391 }
392 else
393 {
394 throw OrthancException(ErrorCode_UnknownResource);
395 }
396 }
397
383 virtual void Remove(const std::string& uuid, 398 virtual void Remove(const std::string& uuid,
384 FileContentType type) ORTHANC_OVERRIDE 399 FileContentType type) ORTHANC_OVERRIDE
385 { 400 {
386 if (type != FileContentType_Dicom) 401 if (type != FileContentType_Dicom)
387 { 402 {