Added 'row' and 'column' layout hints

This commit is contained in:
Bartek Kryza
2023-02-04 21:26:57 +01:00
parent edba233030
commit fbc4fadbb7
9 changed files with 210 additions and 28 deletions

View File

@@ -472,6 +472,14 @@ template <> struct convert<layout_hint> {
rhs.hint = hint_t::together;
rhs.entity = node["together"].as<std::vector<std::string>>();
}
else if (node["row"]) {
rhs.hint = hint_t::row;
rhs.entity = node["row"].as<std::vector<std::string>>();
}
else if (node["column"]) {
rhs.hint = hint_t::column;
rhs.entity = node["column"].as<std::vector<std::string>>();
}
else
return false;