Kea 1.5.0
base_config_backend.h
Go to the documentation of this file.
1// Copyright (C) 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 BASE_CONFIG_BACKEND_H
8#define BASE_CONFIG_BACKEND_H
9
10#include <boost/shared_ptr.hpp>
11#include <cstdint>
12#include <set>
13#include <string>
14
15namespace isc {
16namespace cb {
17
33public:
34
36 virtual ~BaseConfigBackend() { }
37
42 virtual std::string getType() const = 0;
43
50 virtual std::string getHost() const = 0;
51
58 virtual uint16_t getPort() const = 0;
59};
60
62typedef boost::shared_ptr<BaseConfigBackend> BaseConfigBackendPtr;
63
64} // end of namespace isc::cb
65} // end of namespace isc
66
67#endif // BASE_CONFIG_BACKEND_H
Interface for Kea server specific configuration backend implementations.
virtual uint16_t getPort() const =0
Returns backend port number.
virtual ~BaseConfigBackend()
Virtual destructor.
virtual std::string getType() const =0
Returns backend type in the textual format.
virtual std::string getHost() const =0
Returns backend host.
boost::shared_ptr< BaseConfigBackend > BaseConfigBackendPtr
Shared pointer to the BaseConfigBackend.
Defines the logger used by the top-level component of kea-dhcp-ddns.