Function ValidateYAMLNode(const YAML::Node&, std::function<std::string(const YAML::Node&)>, const std::string&, const std::string&)
Defined in File YAMLValidate.hpp
Function Documentation
-
inline void ValidateYAMLNode(const YAML::Node &node, std::function<std::string(const YAML::Node&)> predicate, const std::string &context, const std::string &what)
Validates a YAML node.
- Parameters:
node – The node to examine
predicate – A function to execute for further validation, returning an empty string if check passes and an error message if not
context – Some context for the error message as to what is being parsed
what – A human-friendly description of what node is being parsed
- Throws:
std::runtime_error – If a check fails