Kea 2.7.5
lease_parser.h
Go to the documentation of this file.
1// Copyright (C) 2017-2024 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
15namespace isc {
16namespace lease_cmds {
17
36public:
37
52 const isc::data::ConstElementPtr& lease_info,
53 bool& force_create);
54
56 virtual ~Lease4Parser() {}
57};
58
76
79public:
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.
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.
virtual ~Lease4Parser()
virtual dtor (does nothing)
Parser for Lease6 structure.
virtual ~Lease6Parser()
virtual dtor (does nothing)
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.
boost::shared_ptr< Lease6 > Lease6Ptr
Pointer to a Lease6 structure.
Definition lease.h:508
boost::shared_ptr< Lease4 > Lease4Ptr
Pointer to a Lease4 structure.
Definition lease.h:295
Defines the logger used by the top-level component of kea-lfc.