Definition at line 339 of file yaml_decoders.cc.
|
static bool | decode (const Node &node, context_direction_t &rhs) |
|
◆ decode()
static bool YAML::convert< context_direction_t >::decode |
( |
const Node & |
node, |
|
|
context_direction_t & |
rhs |
|
) |
| |
|
inlinestatic |
Definition at line 340 of file yaml_decoders.cc.
341 {
342 if (node.as<std::string>() == "inward")
343 rhs = context_direction_t::inward;
344 else if (node.as<std::string>() == "outward")
345 rhs = context_direction_t::outward;
346 else if (node.as<std::string>() == "any")
347 rhs = context_direction_t::any;
348 else
349 return false;
350
351 return true;
352 }
The documentation for this struct was generated from the following file: