Function mimir::program::read_doc

Function Documentation

void mimir::program::read_doc(const std::string &key, casadi::Dict &dict, const YAML::Node &config, const YAML::Node &schema)

Traverse config node using knowledge in schema.

This function uses the schema to call read_map(), read_list(), read_leaf(), depending on appropriate traversal of the config YAML::Node.

  • key[in] Identifier in dict map to be populated

  • dict[inout] Map to be populated

  • config[in] Node to be parsed

  • schema[in] Schema with tree structure and data types