Function mimir::program::parse_config¶
Defined in File Config.hpp
Function Documentation¶
-
casadi::Dict mimir::program::parse_config(const YAML::Node &config, const YAML::Node &schema)¶
Parse a YAML::Node into a casadi::Dict based on a schema description.
The config node is validated against the provided schema.
The node is then parsed and converted into a casadi::Dict.
The schema’s data types are used when instancing casadi::Dict’s GenericType.
- Parameters
config – [in] Yaml config to be parsed
schema – [in] Yaml schema for the config
- Returns
The config as a casadi::Dict