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

Detailed Description

Definition at line 915 of file yaml_decoders.cc.

Static Public Member Functions

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

Member Function Documentation

◆ decode()

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

Definition at line 916 of file yaml_decoders.cc.

917 {
918 if (node.Type() == NodeType::Sequence) {
919 rhs.include = node.as<std::vector<string_or_regex>>();
920 return true;
921 }
922
923 if (node.Type() == NodeType::Map) {
924 if (has_key(node, "include"))
925 rhs.include =
926 node["include"].as<std::vector<string_or_regex>>();
927 if (has_key(node, "exclude"))
928 rhs.exclude =
929 node["exclude"].as<std::vector<string_or_regex>>();
930 return true;
931 }
932
933 return false;
934 }

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