20 return (server_tags_.count(server_tag) > 0);
25 if (!server_tags_.erase(
ServerTag(server_tag))) {
41 for (
auto server_tag : server_tags_) {
45 metadata->set(
"server-tags", tags);
void delServerTag(const std::string &server_tag)
Deletes server tag.
boost::shared_ptr< Element > ElementPtr
StampedElement()
Constructor.
static ElementPtr createMap(const Position &pos=ZERO_POSITION())
Creates an empty MapElement type ElementPtr.
static ElementPtr createList(const Position &pos=ZERO_POSITION())
Creates an empty ListElement type ElementPtr.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
bool hasServerTag(const ServerTag &server_tag) const
Checks if the element has the given server tag.
Defines the logger used by the top-level component of kea-dhcp-ddns.
static ElementPtr create(const Position &pos=ZERO_POSITION())
This class represents configuration element which is associated with database identifier and the modi...
static std::string ALL
Server tag for all servers as text.
A generic exception that is thrown when an object can not be found.
isc::data::ElementPtr getMetadata() const
Returns an object representing metadata to be returned with objects from the configuration backend...
bool hasAllServerTag() const
Checks if the element has 'all' server tag.