Kea  2.3.9
lease_parser.h
Go to the documentation of this file.
1 // Copyright (C) 2017-2022 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 LEASE_PARSER_H
8 #define LEASE_PARSER_H
9 
10 #include <cc/data.h>
11 #include <cc/simple_parser.h>
12 #include <dhcpsrv/lease.h>
13 #include <dhcpsrv/srv_config.h>
14 
15 namespace isc {
16 namespace lease_cmds {
17 
36 public:
37 
52  const isc::data::ConstElementPtr& lease_info,
53  bool& force_create);
54 
56  virtual ~Lease4Parser() {}
57 };
58 
76 
79 public:
94  const isc::data::ConstElementPtr& lease_info,
95  bool& force_create);
96 
98  virtual ~Lease6Parser() {}
99 };
100 
101 }; // end of isc::dhcp namespace
102 }; // end of isc namespace
103 
104 #endif
Parser for Lease4 structure.
Definition: lease_parser.h:35
virtual isc::dhcp::Lease4Ptr parse(isc::dhcp::ConstSrvConfigPtr &cfg, const isc::data::ConstElementPtr &lease_info, bool &force_create)
Parses Element tree and tries to convert to Lease4.
Definition: lease_parser.cc:28
virtual ~Lease4Parser()
virtual dtor (does nothing)
Definition: lease_parser.h:56
Parser for Lease6 structure.
Definition: lease_parser.h:78
virtual ~Lease6Parser()
virtual dtor (does nothing)
Definition: lease_parser.h:98
virtual isc::dhcp::Lease6Ptr parse(isc::dhcp::ConstSrvConfigPtr &cfg, const isc::data::ConstElementPtr &lease_info, bool &force_create)
Parses Element tree and tries to convert to Lease4.
boost::shared_ptr< const Element > ConstElementPtr
Definition: data.h:29
boost::shared_ptr< const SrvConfig > ConstSrvConfigPtr
Const pointer to the SrvConfig.
Definition: srv_config.h:1237
boost::shared_ptr< Lease6 > Lease6Ptr
Pointer to a Lease6 structure.
Definition: lease.h:502
boost::shared_ptr< Lease4 > Lease4Ptr
Pointer to a Lease4 structure.
Definition: lease.h:289
Defines the logger used by the top-level component of kea-lfc.