Kea 2.5.8
stdout_control_socket.h
Go to the documentation of this file.
1// Copyright (C) 2018-2022 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
9
10#ifndef STDOUT_CONTROL_SOCKET_H
11#define STDOUT_CONTROL_SOCKET_H
12
14#include <iostream>
15
16namespace isc {
17namespace netconf {
18
25public:
32
34 virtual ~StdoutControlSocket() = default;
35
43 data::ConstElementPtr configGet(const std::string& service) override final;
44
53 const std::string& service) override final;
54
63 const std::string& service) override final;
64
65protected:
70 StdoutControlSocket(CfgControlSocketPtr ctrl_sock, std::ostream& output);
71
73 std::ostream& output_;
74}; // StdoutControlSocket
75
77using StdoutControlSocketPtr = std::shared_ptr<StdoutControlSocket>;
78
83template <> ControlSocketBasePtr
85
86} // namespace netconf
87} // namespace isc
88
89#endif // STDOUT_CONTROL_SOCKET_H
Base class for control socket communication.
Class for control socket communication over stdout.
data::ConstElementPtr configGet(const std::string &service) override final
Get configuration.
data::ConstElementPtr configSet(data::ElementPtr config, const std::string &service) override final
Set configuration.
virtual ~StdoutControlSocket()=default
Destructor (does nothing).
data::ConstElementPtr configTest(data::ElementPtr config, const std::string &service) override final
Test configuration.
std::ostream & output_
The output stream (std::cout outside tests).
Contains declarations for control socket communication.
boost::shared_ptr< const Element > ConstElementPtr
Definition: data.h:29
boost::shared_ptr< Element > ElementPtr
Definition: data.h:28
std::shared_ptr< StdoutControlSocket > StdoutControlSocketPtr
Type definition for the pointer to the StdoutControlSocket.
ControlSocketBasePtr createControlSocket< CfgControlSocket::Type::STDOUT >(CfgControlSocketPtr ctrl_sock)
Factory template specialization for stdout control sockets.
std::shared_ptr< CfgControlSocket > CfgControlSocketPtr
Defines a pointer for CfgControlSocket instances.
std::shared_ptr< ControlSocketBase > ControlSocketBasePtr
Type definition for the pointer to the ControlSocketBase.
Defines the logger used by the top-level component of kea-lfc.