comparison Framework/Loaders/BasicFetchingItemsSorter.h @ 757:f7c236894c1a

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 22 May 2019 17:05:14 +0200
parents 51976977d2d3
children 2d8ab34c8c91
comparison
equal deleted inserted replaced
749:f3a7092ed10e 757:f7c236894c1a
29 { 29 {
30 private: 30 private:
31 unsigned int itemsCount_; 31 unsigned int itemsCount_;
32 32
33 public: 33 public:
34 class Factory : public IFactory
35 {
36 public:
37 virtual IFetchingItemsSorter* CreateSorter(unsigned int itemsCount) const
38 {
39 return new BasicFetchingItemsSorter(itemsCount);
40 }
41 };
42
34 BasicFetchingItemsSorter(unsigned int itemsCount); 43 BasicFetchingItemsSorter(unsigned int itemsCount);
35 44
36 virtual unsigned int GetItemsCount() const 45 virtual unsigned int GetItemsCount() const
37 { 46 {
38 return itemsCount_; 47 return itemsCount_;