10#ifndef ZYPP_SHARED_TVM_TVMSETTINGS_H_INCLUDED
11#define ZYPP_SHARED_TVM_TVMSETTINGS_H_INCLUDED
15#include <yaml-cpp/node/node.h>
31 struct convert<
zypp::test::TVMSettings> {
39 if(!node.IsMap() || !node[
"devices"] ) {
43 rhs.
devices = node[
"devices"].as<std::vector<zypp::test::TVMSettings::Device>>();
49 struct convert<
zypp::test::TVMSettings::Device> {
52 node[
"name"] = rhs.
name;
58 if(!node.IsMap() || !node[
"name"] || !node[
"insertedPath"] ) {
62 rhs.
name = node[
"name"].as<std::string>();
63 rhs.
insertedPath = node[
"insertedPath"].as<std::string>();
Easy-to use interface to the ZYPP dependency resolver.
static Node encode(const zypp::test::TVMSettings &rhs)
static bool decode(const Node &node, zypp::test::TVMSettings &rhs)
static bool decode(const Node &node, zypp::test::TVMSettings::Device &rhs)
static Node encode(const zypp::test::TVMSettings::Device &rhs)
std::vector< Device > devices