Function mola::parse_yaml(const mrpt::containers::yaml&, const YAMLParseOptions&)

Function Documentation

mrpt::containers::yaml mola::parse_yaml(const mrpt::containers::yaml &input, const YAMLParseOptions &opts = YAMLParseOptions())

Overload that accepts and returns an mrpt::containers::yaml node.

Serializes input to text, runs the same pre-processing as the string overload, then re-parses the result back into a mrpt::containers::yaml node.

Parameters:
  • input – Source YAML node.

  • opts – See string overload.

Returns:

New node with all substitutions applied.