|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Factory and dispatcher for spectrum calculators and commands. More...
#include <Interface.h>
Static Public Member Functions | |
| static std::shared_ptr< ICalculator > | createCalculator (CalculatorType type) |
| Creates a concrete calculator for a given type. | |
| static void | executeCommand (CalculatorType type, const std::string &commandName, const std::string &inputFilePath, const std::string &outputFilePath) |
| Executes a named command on a chosen calculator type. | |
Factory and dispatcher for spectrum calculators and commands.
GeneralCalculatorFactory is responsible for:
It is the main integration point between higher-level code (e.g. SpectrumCalculator, MemoryManager) and the low-level calculator backends.
Definition at line 150 of file Interface.h.
|
static |
Creates a concrete calculator for a given type.
This method hides the compile-time conditional availability of calculators (e.g. SOFTSUSY, 2HDMC) behind a single entry point.
| type | The requested calculator type. |
| std::invalid_argument | if type is invalid or unsupported. |
Definition at line 8 of file Interface.cpp.
|
static |
Executes a named command on a chosen calculator type.
Currently supported commandName values:
"calculateSpectrum": instantiate the requested calculator and call ICalculator::calculateSpectrum().| type | Calculator type to use. |
| commandName | Name of the command (e.g. "calculateSpectrum"). |
| inputFilePath | Path to the input file. |
| outputFilePath | Path to the output file. |
If the command name is unknown, an error message is printed to stderr.
Definition at line 19 of file Interface.cpp.