Kea  2.3.5-git
ifaces_config_parser.h
Go to the documentation of this file.
1 // Copyright (C) 2015-2020 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>
14 
15 namespace isc {
16 namespace dhcp {
17 
27 public:
28 
36  IfacesConfigParser(const uint16_t protocol, bool test_mode);
37 
45  void parse(const CfgIfacePtr& config, const isc::data::ConstElementPtr& values);
46 
47 private:
57  void parseInterfacesList(const CfgIfacePtr& cfg_iface,
58  isc::data::ConstElementPtr ifaces_list);
59 
61  int protocol_;
62 
64  bool test_mode_;
65 };
66 
67 }
68 } // end of namespace isc
69 
70 #endif // IFACES_CONFIG_PARSER_H
boost::shared_ptr< CfgIface > CfgIfacePtr
A pointer to the CfgIface .
Definition: cfg_iface.h:501
IfacesConfigParser(const uint16_t protocol, bool test_mode)
Constructor.
Parser for the configuration of interfaces.
boost::shared_ptr< const Element > ConstElementPtr
Definition: data.h:27
void parse(const CfgIfacePtr &config, const isc::data::ConstElementPtr &values)
Parses content of the "interfaces-config".
Defines the logger used by the top-level component of kea-lfc.