Definition at line 302 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 303 of file yaml_decoders.cc.
304 {
305 if (node.as<std::string>() == "public")
306 rhs = access_t::kPublic;
307 else if (node.as<std::string>() == "protected")
308 rhs = access_t::kProtected;
309 else if (node.as<std::string>() == "private")
310 rhs = access_t::kPrivate;
311 else
312 return false;
313
314 return true;
315 }
The documentation for this struct was generated from the following file: