/* This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the Do What The Fuck You Want * To Public License, Version 2, as published by Sam Hocevar. See * http://www.wtfpl.net/ for more details. */ #ifndef BLACKLIST_H__ #define BLACKLIST_H__ #include #include #include class Config; class gameFile; class BlacklistItem { public: unsigned int linenr; // where the blacklist item is defined in blacklist.txt unsigned int flags; std::string source; // source representation of the item boost::regex regex; }; class Blacklist { public: Blacklist() {}; void initialize(const std::vector& lines); bool isBlacklisted(const std::string& path); bool isBlacklisted(const std::string& path, const std::string& gamename, std::string subdirectory = ""); private: std::vector blacklist_; }; #endif // BLACKLIST_H_