Function mola::yaml_to_string

Function Documentation

std::string mola::yaml_to_string(const mrpt::containers::yaml &cfg)

Serialize an mrpt::containers::yaml node to a string.

Uses the node’s built-in stream operator. The result can be re-parsed with mrpt::containers::yaml::FromText().

Parameters:

cfg – Node to serialize.

Returns:

YAML text representation.