0.6.2
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 918 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 919 of file yaml_decoders.cc.

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

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