|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Default implementation of IMappingAdapterFactory. More...
#include <DefaultMappingAdapterFactory.h>


Public Member Functions | |
| std::shared_ptr< IMappingDatabaseAdapter > | create (const std::string &instanceName, const std::string &jsonFilePath, std::shared_ptr< IParamMappingSource > loader) const override |
| Creates a mapping database adapter from a JSON file. | |
Public Member Functions inherited from IMappingAdapterFactory | |
| virtual | ~IMappingAdapterFactory ()=default |
Default implementation of IMappingAdapterFactory.
This factory is meant as a convenient, ready-to-use adapter builder for the common case:
Definition at line 31 of file DefaultMappingAdapterFactory.h.
|
inlineoverridevirtual |
Creates a mapping database adapter from a JSON file.
| instanceName | Logical name for the mapping database. |
| jsonFilePath | Path to the JSON (or JSON-like) mapping file. |
| loader | Optional parameter loader; if null, a JsonParamMappingAdapter with a JSONParser will be constructed. |
| std::runtime_error | if the MappingDatabase cannot be created. |
Implements IMappingAdapterFactory.
Definition at line 47 of file DefaultMappingAdapterFactory.h.