Function mimir::program::read_list¶
Defined in File Config.hpp
Function Documentation¶
-
void mimir::program::read_list(const std::string &key, casadi::Dict &dict, const YAML::Node &config, const YAML::Node &schema)¶
Read node as a list or list of lists.
casadi::Dict only supports vectors and vectors of vectors of a few types. This function checks that the config YAML::Node adheres to these restrictions and read the YAML sequences as std::vector. It throws a YAML::Exception otherwise.
- Parameters
key – [in] Identifier in dict map to be populated as a vector of vector of vectors
dict – [inout] Map to be populated
config – [in] Node to be parsed
schema – [in] Schema with tree structure and data types