Skip to content

algo: Add config micro-library to read YAML files and map to C++ classes.

Felix Weiglhofer requested to merge fweig/cbmroot:algo-config into master

Add config micro-library to read YAML files and map to C++ classes. This is a back-port from my core fork.

As an example, I've also added the RecoParams and the corresponding config file. I.e. the config from file can be read like this:

YAML::Node yaml = YAML::LoadFile("RecoParams.yaml");
RecoParams params = config::Read<RecoParams>(yaml);

Or to dump params to YAML, as a string:

std::string yaml = config::Dump{}(params);
Edited by Felix Weiglhofer

Merge request reports