0.6.0
C++ to UML diagram generator based on Clang
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
YAML::convert< layout_hint > Struct Reference

Detailed Description

Definition at line 940 of file yaml_decoders.cc.

Static Public Member Functions

static bool decode (const Node &node, layout_hint &rhs)
 

Member Function Documentation

◆ decode()

static bool YAML::convert< layout_hint >::decode ( const Node &  node,
layout_hint rhs 
)
inlinestatic

Definition at line 941 of file yaml_decoders.cc.

942 {
943 assert(node.Type() == NodeType::Map);
944
945 if (node["up"]) {
946 rhs.hint = hint_t::up;
947 rhs.entity = node["up"].as<std::string>();
948 }
949 else if (node["down"]) {
950 rhs.hint = hint_t::down;
951 rhs.entity = node["down"].as<std::string>();
952 }
953 else if (node["left"]) {
954 rhs.hint = hint_t::left;
955 rhs.entity = node["left"].as<std::string>();
956 }
957 else if (node["right"]) {
958 rhs.hint = hint_t::right;
959 rhs.entity = node["right"].as<std::string>();
960 }
961 else if (node["together"]) {
962 rhs.hint = hint_t::together;
963 rhs.entity = node["together"].as<std::vector<std::string>>();
964 }
965 else if (node["row"]) {
966 rhs.hint = hint_t::row;
967 rhs.entity = node["row"].as<std::vector<std::string>>();
968 }
969 else if (node["column"]) {
970 rhs.hint = hint_t::column;
971 rhs.entity = node["column"].as<std::vector<std::string>>();
972 }
973 else
974 return false;
975
976 return true;
977 }

The documentation for this struct was generated from the following file: