comparison Framework/Loaders/BasicFetchingStrategy.cpp @ 709:7457b4ee1f29

VolumeSeriesOrthancLoader uses a prefetching strategy
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 20 May 2019 12:03:16 +0200
parents 51976977d2d3
children 5b16242cdc93
comparison
equal deleted inserted replaced
708:51976977d2d3 709:7457b4ee1f29
48 if (sorter == NULL) 48 if (sorter == NULL)
49 { 49 {
50 throw Orthanc::OrthancException(Orthanc::ErrorCode_NullPointer); 50 throw Orthanc::OrthancException(Orthanc::ErrorCode_NullPointer);
51 } 51 }
52 52
53 nextQuality_.resize(sorter_->GetItemsCount(), 0), // Does not change along calls to "SetCurrent()" 53 nextQuality_.resize(sorter_->GetItemsCount(), 0); // Does not change along calls to "SetCurrent()"
54 54
55 SetCurrent(0); 55 SetCurrent(0);
56 } 56 }
57 57
58 58
59 // WARNING - This parameters is only considered during the next call to SetCurrent().
60 void BasicFetchingStrategy::SetBlockSize(unsigned int size) 59 void BasicFetchingStrategy::SetBlockSize(unsigned int size)
61 { 60 {
62 if (size <= 0) 61 if (size <= 0)
63 { 62 {
64 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); 63 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);