|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Factory interface for building IMappingDatabaseAdapter instances. More...
#include <IMappingAdapterFactory.h>

Public Member Functions | |
| virtual | ~IMappingAdapterFactory ()=default |
| virtual std::shared_ptr< IMappingDatabaseAdapter > | create (const std::string &instanceName, const std::string &jsonFilePath, std::shared_ptr< IParamMappingSource > loader) const =0 |
| Creates a mapping database adapter from an underlying JSON-like file. | |
Factory interface for building IMappingDatabaseAdapter instances.
A concrete factory typically:
Example implementation:
Definition at line 31 of file IMappingAdapterFactory.h.
|
virtualdefault |
|
pure virtual |
Creates a mapping database adapter from an underlying JSON-like file.
| instanceName | Human-readable name for the mapping database instance. |
| jsonFilePath | Path to the JSON (or JSON-like) file containing parameter mapping definitions. |
| loader | Optional mapping source responsible for reading and interpreting the file. If null, the concrete factory is expected to instantiate a sensible default (e.g. JsonParamMappingAdapter + JSONParser). |
| std::runtime_error | if the underlying database or adapter cannot be created or initialized. |
Implemented in DefaultMappingAdapterFactory.