Definition at line 915 of file yaml_decoders.cc.
◆ 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) {
925 rhs.include =
926 node["include"].as<std::vector<string_or_regex>>();
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: