Kea
1.5.0
ifaces_config_parser.h
Go to the documentation of this file.
1
// Copyright (C) 2015-2017 Internet Systems Consortium, Inc. ("ISC")
2
//
3
// This Source Code Form is subject to the terms of the Mozilla Public
4
// License, v. 2.0. If a copy of the MPL was not distributed with this
5
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7
#ifndef IFACES_CONFIG_PARSER_H
8
#define IFACES_CONFIG_PARSER_H
9
10
#include <
cc/data.h
>
11
#include <
cc/simple_parser.h
>
12
#include <
dhcpsrv/cfg_iface.h
>
13
#include <
dhcpsrv/parsers/dhcp_parsers.h
>
14
15
namespace
isc
{
16
namespace
dhcp {
17
26
class
IfacesConfigParser
:
public
isc::data::SimpleParser
{
27
public
:
28
32
explicit
IfacesConfigParser
(
const
uint16_t protocol);
33
41
void
parse
(
const
CfgIfacePtr
& config,
const
isc::data::ConstElementPtr
& values);
42
43
private
:
53
void
parseInterfacesList(
const
CfgIfacePtr
& cfg_iface,
54
isc::data::ConstElementPtr
ifaces_list);
55
57
int
protocol_;
58
};
59
60
}
61
}
// end of namespace isc
62
63
#endif // IFACES_CONFIG_PARSER_H
isc::dhcp::IfacesConfigParser
Parser for the configuration of interfaces.
Definition:
ifaces_config_parser.h:26
isc::dhcp::IfacesConfigParser::parse
void parse(const CfgIfacePtr &config, const isc::data::ConstElementPtr &values)
Parses content of the "interfaces-config".
Definition:
ifaces_config_parser.cc:41
dhcp_parsers.h
isc
Defines the logger used by the top-level component of kea-dhcp-ddns.
Definition:
agent_parser.cc:144
cfg_iface.h
isc::data::SimpleParser
A simple parser.
Definition:
lib/cc/simple_parser.h:60
isc::dhcp::IfacesConfigParser::IfacesConfigParser
IfacesConfigParser(const uint16_t protocol)
Constructor.
Definition:
ifaces_config_parser.cc:36
data.h
isc::data::ConstElementPtr
boost::shared_ptr< const Element > ConstElementPtr
Definition:
data.h:23
isc::dhcp::CfgIfacePtr
boost::shared_ptr< CfgIface > CfgIfacePtr
A pointer to the CfgIface .
Definition:
cfg_iface.h:387
simple_parser.h
src
lib
dhcpsrv
parsers
ifaces_config_parser.h
Generated on Fri Jul 10 2020 09:12:51 for Kea by
1.8.18