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

Detailed Description

Definition at line 281 of file yaml_decoders.cc.

Static Public Member Functions

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

Member Function Documentation

◆ decode()

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

Definition at line 282 of file yaml_decoders.cc.

283 {
284 if (node.as<std::string>() == "inward")
285 rhs = context_direction_t::inward;
286 else if (node.as<std::string>() == "outward")
287 rhs = context_direction_t::outward;
288 else if (node.as<std::string>() == "any")
289 rhs = context_direction_t::any;
290 else
291 return false;
292
293 return true;
294 }

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