Kea 2.2.0
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
15namespace isc {
16namespace lease_cmds {
17
36public:
37
50 const isc::data::ConstElementPtr& lease_info,
51 bool& force_create);
52
54 virtual ~Lease4Parser() {}
55};
56
74
77public:
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::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
virtual ~Lease4Parser()
virtual dtor (does nothing)
Definition: lease_parser.h:54
Parser for Lease6 structure.
Definition: lease_parser.h:76
virtual ~Lease6Parser()
virtual dtor (does nothing)
Definition: lease_parser.h:94
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:27
boost::shared_ptr< const SrvConfig > ConstSrvConfigPtr
Const pointer to the SrvConfig.
Definition: srv_config.h:1168
boost::shared_ptr< Lease6 > Lease6Ptr
Pointer to a Lease6 structure.
Definition: lease.h:503
boost::shared_ptr< Lease4 > Lease4Ptr
Pointer to a Lease4 structure.
Definition: lease.h:284
Defines the logger used by the top-level component of kea-lfc.