19 if (server_tags.empty()) {
24 std::set<ServerTag> tags;
27 for (
auto const& tag : server_tags) {
35ServerSelector::ServerSelector(
const Type& type)
36 : type_(type), tags_() {
42ServerSelector::ServerSelector(
const ServerTag& server_tag)
43 : type_(server_tag.amAll() ? Type::ALL : Type::SUBSET), tags_({server_tag}) {
46ServerSelector::ServerSelector(
const std::set<ServerTag>& server_tags)
47 : type_(Type::SUBSET), tags_(server_tags) {
A generic exception that is thrown if a function is called in a prohibited way.
Server selector for associating objects in a database with specific servers.
static ServerSelector MULTIPLE(const std::set< std::string > &server_tags)
Factory returning "multiple servers" selector.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
Defines the logger used by the top-level component of kea-lfc.