Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
DictDBNodeProvider Class Reference

DBNode provider for JSON/YAML configuration files. More...

#include <DictDBNodeProvider.h>

Inheritance diagram for DictDBNodeProvider:
Collaboration diagram for DictDBNodeProvider:

Public Member Functions

 DictDBNodeProvider (fs::path src_path_)
 Constructs a provider bound to a specific JSON/YAML file path.
 
std::shared_ptr< DBNodeprovide_db_as_node () override
 Loads the underlying file and returns it as a DBNode tree.
 
- Public Member Functions inherited from IDBNodeProvider
 IDBNodeProvider (fs::path src_path_)
 Constructs a provider bound to a given source path.
 
virtual ~IDBNodeProvider ()=default
 

Additional Inherited Members

- Protected Attributes inherited from IDBNodeProvider
fs::path src_path
 

Detailed Description

DBNode provider for JSON/YAML configuration files.

This provider is the counterpart of LhaDBNodeProvider for dictionary-based formats such as JSON and YAML.

Definition at line 21 of file DictDBNodeProvider.h.

Constructor & Destructor Documentation

◆ DictDBNodeProvider()

DictDBNodeProvider::DictDBNodeProvider ( fs::path  src_path_)
inline

Constructs a provider bound to a specific JSON/YAML file path.

Parameters
src_pathPath to the input configuration file.

Definition at line 28 of file DictDBNodeProvider.h.

Member Function Documentation

◆ provide_db_as_node()

std::shared_ptr< DBNode > DictDBNodeProvider::provide_db_as_node ( )
overridevirtual

Loads the underlying file and returns it as a DBNode tree.

Internally this delegates to DBManager::read_from_file(), which in turn selects the appropriate parser based on the file extension.

Returns
Shared pointer to the root DBNode representing the file content.

Implements IDBNodeProvider.

Definition at line 3 of file DictDBNodeProvider.cpp.


The documentation for this class was generated from the following files: