Helper function Library::getBookPropValueSet()

Introduced a helper function `Library::getBookPropValueSet()` and
deduplicated Library::getBooks{Languages,Creators,Publishers}() methods.
This commit is contained in:
Veloman Yunkan
2021-06-10 12:27:51 +04:00
committed by Matthieu Gautier
parent b2027b397c
commit 18871b4b15
3 changed files with 37 additions and 45 deletions

View File

@ -341,7 +341,11 @@ class Library
friend class OPDSDumper;
friend class libXMLDumper;
private: // types
typedef const std::string& (Book::*BookStrPropMemFn)() const;
private: // functions
std::vector<std::string> getBookPropValueSet(BookStrPropMemFn p) const;
BookIdCollection filterViaBookDB(const Filter& filter) const;
void updateBookDB(const Book& book);
};