10 #include <boost/algorithm/string/classification.hpp>
11 #include <boost/algorithm/string/constants.hpp>
12 #include <boost/algorithm/string/split.hpp>
21 std::vector<std::string> split_text;
22 boost::split(split_text, class_names, boost::is_any_of(
","),
23 boost::algorithm::token_compress_off);
24 for (
size_t i = 0; i < split_text.size(); ++i) {
27 if (!trimmed.empty()) {
35 list_.remove(class_name);
36 static_cast<void>(set_.erase(class_name));
43 if (class_it !=
cbegin()) {
Defines elements for storing the names of client classes.
std::list< ClientClass >::const_iterator const_iterator
Type of iterators.
const_iterator cend() const
Iterator to the past the end element.
Defines the logger used by the top-level component of kea-dhcp-ddns.
ClientClasses()
Default constructor.
void erase(const ClientClass &class_name)
Erase element by name.
string trim(const string &instring)
Trim Leading and Trailing Spaces.
void insert(const ClientClass &class_name)
Insert an element.
std::string ClientClass
Defines a single class name.
const_iterator cbegin() const
Iterator to the first element.
std::string toText(const std::string &separator=", ") const
Returns all class names as text.