Define MCP_LOAD_REQ
Defined in File yaml.h
Define Documentation
-
MCP_LOAD_REQ(Yaml__, Var__)
Macro to load a variable from a mrpt::containers::yaml (initials MCP) dictionary, throwing an std::invalid_argument exception if the value is not found (REQuired).
Usage:
mrpt::containers::yaml p; double K; MCP_LOAD_REQ(p, K);
Since MRPT 2.3.2, this also works for enums, converting to textual names of values. Note that this requires enums to implement mrpt::typemeta::TEnumType.