Kea 2.7.5
cfg_to_element.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 CFG_TO_ELEMENT_H
8#define CFG_TO_ELEMENT_H
9
11#include <cc/data.h>
12
13namespace isc {
14
20public:
21 ToElementError(const char* file, size_t line, const char* what) :
22 isc::Exception(file, line, what) { }
23};
24
25namespace data {
26
31 virtual ~CfgToElement() { }
32
42 virtual isc::data::ElementPtr toElement() const = 0;
43};
44
45} // namespace dhcp
46} // namespace isc
47
48#endif // CFG_TO_ELEMENT_H
This is a base class for exceptions thrown from the DNS library module.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
Cannot unparse error.
ToElementError(const char *file, size_t line, const char *what)
boost::shared_ptr< Element > ElementPtr
Definition data.h:28
Defines the logger used by the top-level component of kea-lfc.
Abstract class for configuration Cfg_* classes.
virtual ~CfgToElement()
Destructor.
virtual isc::data::ElementPtr toElement() const =0
Unparse a configuration object.