Function mimir::program::read_leaf

Function Documentation

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

Read leaf node into dict.

Reads leaf YAML::Node as a basic type. Throws YAML::Exception if the requested type in schema is incompatible with casadi::Dict.

Parameters
  • key[in] Identifier in dict map to be populated as a basic type

  • dict[inout] Map to be populated

  • config[in] Node to be parsed

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