|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Central factory for building concrete IDBNodeProvider objects. More...
#include <DBNodeProviderFactory.h>
Public Types | |
| enum class | Type { DICT , LHA } |
| High-level type of node provider. More... | |
Static Public Member Functions | |
| static std::shared_ptr< IDBNodeProvider > | createDBNodeProvider (fs::path src_path) |
| Creates an IDBNodeProvider for a given file path. | |
Central factory for building concrete IDBNodeProvider objects.
DBNodeProviderFactory hides the logic of choosing which provider to use for a given source path. It relies on DBManager::EXTENSIONS to map file extensions to parser families.
Definition at line 28 of file DBNodeProviderFactory.h.
|
strong |
High-level type of node provider.
Currently two families are supported:
| Enumerator | |
|---|---|
| DICT | |
| LHA | |
Definition at line 37 of file DBNodeProviderFactory.h.
|
static |
Creates an IDBNodeProvider for a given file path.
The extension of src_path is inspected and compared against the extension sets registered in DBManager::EXTENSIONS:
If the extension cannot be recognized, a fatal error is logged.
| src_path | Path to the source file whose contents should be exposed via an IDBNodeProvider. |
Definition at line 3 of file DBNodeProviderFactory.cpp.