15 #ifndef CAMPAIGN_SERVER_BLACKLIST_HPP_INCLUDED
16 #define CAMPAIGN_SERVER_BLACKLIST_HPP_INCLUDED
20 #include <boost/noncopyable.hpp>
bool is_in_globlist(const std::string &str, const globlist &glist) const
std::vector< glob > globlist
Definitions for the interface to Wesnoth Markup Language (WML).
void write(config &cfg) const
Writes the blacklist to a WML node.
std::pair< unsigned int, unsigned int > ip_mask
bool is_in_ip_masklist(const std::string &ip, const globlist &mlist) const
bool is_blacklisted(const std::string &name, const std::string &title, const std::string &description, const std::string &author, const std::string &ip, const std::string &email) const
Whether an add-on described by these fields is blacklisted.
void parse_str_to_globlist(const std::string &str, globlist &glist)
GLuint const GLchar * name
void read(const config &cfg)
Initializes the blacklist from WML.
A config object defines a single node in a WML file, with access to child nodes.
GLsizei const GLcharARB ** string
bool ip_matches(const std::string &ip, const glob &ip_mask) const