Kea 2.0.3
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
61
71public:
72
77 TranslatorControlSocket(sysrepo::S_Session session,
78 const std::string& model);
79
82
88 isc::data::ConstElementPtr getControlSocket(const std::string& xpath);
89
94 void setControlSocket(const std::string& xpath,
96
97protected:
103 isc::data::ElementPtr getControlSocketKea(const std::string& xpath);
104
114 void setControlSocketKea(const std::string& xpath,
116};
117
118} // namespace yang
119} // namespace isc
120
121#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.