12 #include <boost/algorithm/string.hpp>
24 : tag_(util::str::
trim(tag)) {
28 }
else if (tag_.length() > 256) {
32 boost::algorithm::to_lower(tag_);
48 os << server_tag.
get();
std::string get() const
Returns server tag as string.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
A generic exception that is thrown if a parameter given to a method is considered invalid in that con...
std::ostream & operator<<(std::ostream &out, const Element::Position &pos)
Insert Element::Position as a string into stream.
bool amAll() const
Checks if the server tag is set to "all servers".
ServerTag()
Default constructor.
Defines the logger used by the top-level component of kea-dhcp-ddns.
static std::string ALL
Server tag for all servers as text.
string trim(const string &instring)
Trim Leading and Trailing Spaces.