Kea 2.2.0
translator_control_socket.h
Go to the documentation of this file.
1// Copyright (C) 2018-2021 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 ISC_TRANSLATOR_CONTROL_SOCKET_H
8#define ISC_TRANSLATOR_CONTROL_SOCKET_H 1
9
10#include <yang/translator.h>
11#include <list>
12
13namespace isc {
14namespace yang {
15
60
70public:
71
76 TranslatorControlSocket(sysrepo::S_Session session,
77 const std::string& model);
78
81
87 isc::data::ConstElementPtr getControlSocket(const std::string& xpath);
88
93 void setControlSocket(const std::string& xpath,
95
96protected:
102 isc::data::ElementPtr getControlSocketKea(const std::string& xpath);
103
113 void setControlSocketKea(const std::string& xpath,
115};
116
117} // namespace yang
118} // namespace isc
119
120#endif // ISC_TRANSLATOR_CONTROL_SOCKET_H
Between YANG and JSON translator class for basic values.
Definition: translator.h:19
Control socket translation between YANG and JSON.
void setControlSocket(const std::string &xpath, isc::data::ConstElementPtr elem)
Translate and set control socket from JSON to YANG.
void setControlSocketKea(const std::string &xpath, isc::data::ConstElementPtr elem)
setControlSocket for kea models.
TranslatorControlSocket(sysrepo::S_Session session, const std::string &model)
Constructor.
isc::data::ElementPtr getControlSocketKea(const std::string &xpath)
getControlSocket JSON for kea models.
isc::data::ConstElementPtr getControlSocket(const std::string &xpath)
Get and translate a control socket from YANG to JSON.
boost::shared_ptr< const Element > ConstElementPtr
Definition: data.h:27
boost::shared_ptr< Element > ElementPtr
Definition: data.h:24
Defines the logger used by the top-level component of kea-lfc.