Be able to filter the books by name.

This commit is contained in:
Matthieu Gautier
2020-01-30 11:14:35 +01:00
parent d14ba0c2e8
commit f560a1f815
2 changed files with 11 additions and 0 deletions

View File

@ -57,6 +57,7 @@ class Filter {
std::string _creator;
size_t _maxSize;
std::string _query;
std::string _name;
public:
Filter();
@ -100,6 +101,7 @@ class Filter {
Filter& creator(std::string creator);
Filter& maxSize(size_t size);
Filter& query(std::string query);
Filter& name(std::string name);
bool accept(const Book& book) const;
};