Skip to content
Snippets Groups Projects

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

Closed 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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading