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 
15 namespace isc {
16 namespace cb {
17 
33 public:
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 
62 typedef boost::shared_ptr<BaseConfigBackend> BaseConfigBackendPtr;
63 
64 } // end of namespace isc::cb
65 } // end of namespace isc
66 
67 #endif // BASE_CONFIG_BACKEND_H
isc::cb::BaseConfigBackend::getType
virtual std::string getType() const =0
Returns backend type in the textual format.
isc::cb::BaseConfigBackend::~BaseConfigBackend
virtual ~BaseConfigBackend()
Virtual destructor.
Definition: base_config_backend.h:36
isc::cb::BaseConfigBackend::getPort
virtual uint16_t getPort() const =0
Returns backend port number.
isc::cb::BaseConfigBackend::getHost
virtual std::string getHost() const =0
Returns backend host.
isc
Defines the logger used by the top-level component of kea-dhcp-ddns.
Definition: agent_parser.cc:144
isc::cb::BaseConfigBackendPtr
boost::shared_ptr< BaseConfigBackend > BaseConfigBackendPtr
Shared pointer to the BaseConfigBackend.
Definition: base_config_backend.h:62
isc::cb::BaseConfigBackend
Interface for Kea server specific configuration backend implementations.
Definition: base_config_backend.h:32