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< context_direction_t > Struct Reference

Detailed Description

Definition at line 339 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 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: