7#ifndef HOST_RESERVATIONS_LIST_PARSER_H
8#define HOST_RESERVATIONS_LIST_PARSER_H
14#include <boost/foreach.hpp>
24template<
typename HostReservationParserType>
43 HostReservationParserType parser;
44 hosts.push_back(parser.parse(subnet_id, reservation));
46 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.