7 #ifndef HOST_RESERVATIONS_LIST_PARSER_H
8 #define HOST_RESERVATIONS_LIST_PARSER_H
14 #include <boost/foreach.hpp>
24 template<
typename HostReservationParserType>
43 HostReservationParserType parser;
44 hosts.push_back(parser.parse(subnet_id, reservation));
46 hosts_list.swap(hosts);
53 #endif // HOST_RESERVATIONS_LIST_PARSER_H
std::vector< HostPtr > HostCollection
Collection of the Host objects.
void parse(const SubnetID &subnet_id, isc::data::ConstElementPtr hr_list, HostCollection &hosts_list)
Parses a list of host reservation entries for a subnet.
boost::shared_ptr< const Element > ConstElementPtr
Defines the logger used by the top-level component of kea-dhcp-ddns.
Parser for a list of host reservations for a subnet.
uint32_t SubnetID
Unique identifier for a subnet (both v4 and v6)