|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
IParamMappingSource implementation backed by a JSON-like file. More...
#include <JsonParamMappingAdapter.h>


Public Member Functions | |
| JsonParamMappingAdapter (std::shared_ptr< IParser > parser) | |
| Constructs the adapter with a given parser instance. | |
| std::unordered_map< std::string, InterpretedParam > | loadFromFile (const std::string &filePath) const override |
| Loads parameter mappings from a file. | |
Public Member Functions inherited from IParamMappingSource | |
| virtual | ~IParamMappingSource ()=default |
IParamMappingSource implementation backed by a JSON-like file.
Expected JSON (or YAML) schema:
For each top-level key, the adapter constructs an InterpretedParam by:
Definition at line 38 of file JsonParamMappingAdapter.h.
|
inlineexplicit |
Constructs the adapter with a given parser instance.
| parser | Concrete parser (e.g. JSONParser) used to load the file into a Node tree. |
Definition at line 46 of file JsonParamMappingAdapter.h.
|
overridevirtual |
Loads parameter mappings from a file.
| filePath | Path to the JSON/YAML mapping file. |
| std::runtime_error | if the parser is null, the root DBNode is null, or the file cannot be parsed. |
Implements IParamMappingSource.
Definition at line 5 of file JsonParamMappingAdapter.cpp.