Kea: lease_parser.h Source File

| Kea 3.2.0-git

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
35 class Lease4Parser : public isc::data::SimpleParser {
36public:
37
51 virtual isc::dhcp::Lease4Ptr parse(isc::dhcp::ConstSrvConfigPtr& cfg,
52 const isc::data::ConstElementPtr& lease_info,
53 bool& force_create);
54
56 virtual ~Lease4Parser() {}
57};
58
76
78 class Lease6Parser : public isc::data::SimpleParser {
79public:
93 virtual isc::dhcp::Lease6Ptr parse(isc::dhcp::ConstSrvConfigPtr& cfg,
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
isc::data::SimpleParser
A simple parser.
Definition lib/cc/simple_parser.h:68
isc::lease_cmds::Lease4Parser
Parser for Lease4 structure.
Definition lease_parser.h:35
isc::lease_cmds::Lease4Parser::parse
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:29
isc::lease_cmds::Lease4Parser::~Lease4Parser
virtual ~Lease4Parser()
virtual dtor (does nothing)
Definition lease_parser.h:56
isc::lease_cmds::Lease6Parser
Parser for Lease6 structure.
Definition lease_parser.h:78
isc::lease_cmds::Lease6Parser::~Lease6Parser
virtual ~Lease6Parser()
virtual dtor (does nothing)
Definition lease_parser.h:98
isc::lease_cmds::Lease6Parser::parse
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.
Definition lease_parser.cc:202
data.h
lease.h
simple_parser.h
isc::data::ConstElementPtr
boost::shared_ptr< const Element > ConstElementPtr
Definition data.h:30
isc::dhcp::ConstSrvConfigPtr
boost::shared_ptr< const SrvConfig > ConstSrvConfigPtr
Const pointer to the SrvConfig.
Definition srv_config.h:1151
isc::dhcp::Lease6Ptr
boost::shared_ptr< Lease6 > Lease6Ptr
Pointer to a Lease6 structure.
Definition lease.h:528
isc::dhcp::Lease4Ptr
boost::shared_ptr< Lease4 > Lease4Ptr
Pointer to a Lease4 structure.
Definition lease.h:315
isc::lease_cmds
Definition binding_variables.cc:21
isc
Defines the logger used by the top-level component of kea-lfc.
Definition check_exists_add.cc:18
srv_config.h