Filipbg

Article13Filter.h

Jan 18th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #ifndef ARTICLE_13_FILTER_H
  2. #define ARTICLE_13_FILTER_H
  3.  
  4. #include <string>
  5. #include <vector>
  6. #include <set>
  7.  
  8. class Article13Filter {
  9. private:
  10.     std::set<std::string> copyrighted;
  11.     std::vector<std::string> blocked;
  12. public:
  13.     Article13Filter(std::set<std::string> copyrighted);
  14.     bool blockIfCopyrighted(std::string s);
  15.     bool isCopyrighted(std::string s);
  16.  
  17.     std::vector<std::string> getBlocked();
  18. };
  19.  
  20. #endif // !ARTICLE_13_FILTER_H
Add Comment
Please, Sign In to add comment