Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Loaders/BasicFetchingStrategy.h @ 1571:85e117739eca
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 21 Sep 2020 17:46:39 +0200 |
parents | 244ad1e4e76a |
children | 4fb8fdf03314 |
comparison
equal
deleted
inserted
replaced
1570:9a04f42098a3 | 1571:85e117739eca |
---|---|
70 | 70 |
71 public: | 71 public: |
72 BasicFetchingStrategy(IFetchingItemsSorter* sorter, // Takes ownership | 72 BasicFetchingStrategy(IFetchingItemsSorter* sorter, // Takes ownership |
73 unsigned int maxQuality); | 73 unsigned int maxQuality); |
74 | 74 |
75 virtual unsigned int GetItemsCount() const | 75 virtual unsigned int GetItemsCount() const ORTHANC_OVERRIDE |
76 { | 76 { |
77 return sorter_->GetItemsCount(); | 77 return sorter_->GetItemsCount(); |
78 } | 78 } |
79 | 79 |
80 virtual unsigned int GetMaxQuality() const | 80 virtual unsigned int GetMaxQuality() const ORTHANC_OVERRIDE |
81 { | 81 { |
82 return maxQuality_; | 82 return maxQuality_; |
83 } | 83 } |
84 | 84 |
85 // WARNING - This parameters is only considered during the next | 85 // WARNING - This parameters is only considered during the next |
86 // call to SetCurrent(). | 86 // call to SetCurrent(). |
87 void SetBlockSize(unsigned int size); | 87 void SetBlockSize(unsigned int size); |
88 | 88 |
89 virtual bool GetNext(unsigned int& item, | 89 virtual bool GetNext(unsigned int& item, |
90 unsigned int& quality); | 90 unsigned int& quality) ORTHANC_OVERRIDE; |
91 | 91 |
92 virtual void SetCurrent(unsigned int item); | 92 virtual void SetCurrent(unsigned int item) ORTHANC_OVERRIDE; |
93 | 93 |
94 virtual void RecycleFurthest(unsigned int& item); | 94 virtual void RecycleFurthest(unsigned int& item) ORTHANC_OVERRIDE; |
95 }; | 95 }; |
96 } | 96 } |