Kea  1.9.9-git
lease_parser.h
Go to the documentation of this file.
1 // Copyright (C) 2017-2018 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 
50  const isc::data::ConstElementPtr& lease_info,
51  bool& force_create);
52 
54  virtual ~Lease4Parser() {}
55 };
56 
74 
77 public:
90  const isc::data::ConstElementPtr& lease_info,
91  bool& force_create);
92 
94  virtual ~Lease6Parser() {}
95 };
96 
97 }; // end of isc::dhcp namespace
98 }; // end of isc namespace
99 
100 #endif
Parser for Lease4 structure.
Definition: lease_parser.h:35
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.
virtual ~Lease4Parser()
virtual dtor (does nothing)
Definition: lease_parser.h:54
boost::shared_ptr< const SrvConfig > ConstSrvConfigPtr
Const pointer to the SrvConfig.
Definition: srv_config.h:1039
boost::shared_ptr< Lease4 > Lease4Ptr
Pointer to a Lease4 structure.
Definition: lease.h:283
virtual ~Lease6Parser()
virtual dtor (does nothing)
Definition: lease_parser.h:94
Parser for Lease6 structure.
Definition: lease_parser.h:76
boost::shared_ptr< const Element > ConstElementPtr
Definition: data.h:23
Defines the logger used by the top-level component of kea-dhcp-ddns.
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:26
boost::shared_ptr< Lease6 > Lease6Ptr
Pointer to a Lease6 structure.
Definition: lease.h:492