2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-03 07:25:18 +00:00

[3560] Client classes may now be created from the csv string.

This commit is contained in:
Marcin Siodelski
2014-10-14 10:47:10 +02:00
parent 46918f31b4
commit e2850e9081
3 changed files with 34 additions and 4 deletions

View File

@@ -53,6 +53,17 @@ namespace dhcp {
/// documentation. See http://www.cplusplus.com/reference/set/set/.
class ClientClasses : public std::set<ClientClass> {
public:
/// @brief Default constructor.
ClientClasses() : std::set<ClientClass>() {
}
/// @brief Constructor from comma separated values.
///
/// @param class_names A string containing a client classes separated
/// with commas. The class names are trimmed before insertion to the set.
ClientClasses(const std::string& class_names);
/// @brief returns if class x belongs to the defined classes
///
/// @param x client class to be checked