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 138 #endif // ISC_TRANSLATOR_H isc::data::ElementPtr getItems(const std::string &xpath)
Get and translate a list of basic values from YANG to JSON.
Between YANG and JSON translator class for basic values.
virtual ~TranslatorBasic()
Destructor.
boost::shared_ptr< Element > ElementPtr
sysrepo::S_Iter_Value getIter(const std::string &xpath)
List iterator methods keeping the session private.
void setItem(const std::string &xpath, isc::data::ConstElementPtr elem, sr_type_t type)
Translate and set basic value from JSON to YANG.
std::string model_
The model.
boost::shared_ptr< const Element > ConstElementPtr
std::string getNext(sysrepo::S_Iter_Value iter)
Get xpath of the next YANG list item.
TranslatorBasic(sysrepo::S_Session session, const std::string &model)
Constructor.
void delItem(const std::string &xpath)
Delete basic value from YANG.
Defines the logger used by the top-level component of kea-dhcp-ddns.
isc::data::ElementPtr getItem(const std::string &xpath)
Get and translate basic value from YANG to JSON.
static isc::data::ElementPtr value(sysrepo::S_Val s_val)
Translate basic value from YANG to JSON.
sysrepo::S_Session session_
The sysrepo session.