7#ifndef ISC_TRANSLATOR_H
8#define ISC_TRANSLATOR_H 1
14#error "config.h must be included before translator.h"
17#ifndef HAVE_PRE_0_7_6_SYSREPO
18#include <sysrepo-cpp/Session.hpp>
20#include <sysrepo-cpp/Session.h>
34#ifndef HAVE_PRE_0_7_6_SYSREPO
50#ifndef HAVE_PRE_0_7_6_SYSREPO
80#ifndef HAVE_PRE_0_7_6_SYSREPO
98 void delItem(
const std::string& xpath);
106#ifndef HAVE_PRE_0_7_6_SYSREPO
107 sysrepo::S_Iter_Value
getIter(
const std::string& xpath);
109 S_Iter_Value
getIter(
const std::string& xpath);
117#ifndef HAVE_PRE_0_7_6_SYSREPO
118 std::string
getNext(sysrepo::S_Iter_Value iter);
120 std::string
getNext(S_Iter_Value iter);
125#ifndef HAVE_PRE_0_7_6_SYSREPO
Between YANG and JSON translator class for basic values.
std::string getNext(sysrepo::S_Iter_Value iter)
Get xpath of the next YANG list item.
isc::data::ElementPtr getItem(const std::string &xpath)
Get and translate basic value from YANG to JSON.
sysrepo::S_Iter_Value getIter(const std::string &xpath)
List iterator methods keeping the session private.
std::string model_
The model.
static isc::data::ElementPtr value(sysrepo::S_Val s_val)
Translate basic value from YANG to JSON.
void delItem(const std::string &xpath)
Delete basic value from YANG.
void setItem(const std::string &xpath, isc::data::ConstElementPtr elem, sr_type_t type)
Translate and set basic value from JSON to YANG.
sysrepo::S_Session session_
The sysrepo session.
isc::data::ElementPtr getItems(const std::string &xpath)
Get and translate a list of basic values from YANG to JSON.
virtual ~TranslatorBasic()
Destructor.
boost::shared_ptr< const Element > ConstElementPtr
boost::shared_ptr< Element > ElementPtr
Defines the logger used by the top-level component of kea-dhcp-ddns.