7#ifndef HOST_RESERVATIONS_LIST_PARSER_H
8#define HOST_RESERVATIONS_LIST_PARSER_H
23template<
typename HostReservationParserType>
41 for (
auto const& reservation : hr_list->listValue()) {
42 HostReservationParserType parser;
43 hosts.push_back(parser.parse(subnet_id, reservation));
45 hosts_list.swap(hosts);
Parser for a list of host reservations for a subnet.
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
std::vector< HostPtr > HostCollection
Collection of the Host objects.
uint32_t SubnetID
Defines unique IPv4 or IPv6 subnet identifier.
Defines the logger used by the top-level component of kea-lfc.