pflib v2.7.0-1-gd371ab6a
Polarfire Interaction Library
pflib::detail Namespace Reference

Hidden functions to avoid misuse. More...

Classes

class  PolarfireSetting
 Object that can change a setting on a polarfire target. More...
 

Functions

void extract (YAML::Node params, std::map< std::string, std::map< std::string, int > > &settings)
 Extract a map of page_name, param_name to their values by crawling the YAML tree. More...
 

Detailed Description

Hidden functions to avoid misuse.

Function Documentation

◆ extract()

void pflib::detail::extract ( YAML::Node  params,
std::map< std::string, std::map< std::string, int > > &  settings 
)

Extract a map of page_name, param_name to their values by crawling the YAML tree.

Exceptions
pflib::Exceptionif YAML file has a bad format (root node is not a map, page nodes are not maps, page name doesn't match any pages, or parameter's value does not exist).
Parameters
[in]paramsa YAML::Node to start extraction from
[in,out]settingsmap of names to values for extract parameters