Definition at line 303 of file yaml_decoders.cc.
|
static bool | decode (const Node &node, access_t &rhs) |
|
◆ decode()
static bool YAML::convert< access_t >::decode |
( |
const Node & |
node, |
|
|
access_t & |
rhs |
|
) |
| |
|
inlinestatic |
Definition at line 304 of file yaml_decoders.cc.
305 {
306 if (node.as<std::string>() == "public")
307 rhs = access_t::kPublic;
308 else if (node.as<std::string>() == "protected")
309 rhs = access_t::kProtected;
310 else if (node.as<std::string>() == "private")
311 rhs = access_t::kPrivate;
312 else
313 return false;
314
315 return true;
316 }
The documentation for this struct was generated from the following file: