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

Command to calculate the spectrum using a given calculator. More...

#include <Interface.h>

Inheritance diagram for CalculateSpectrumCommand:
Collaboration diagram for CalculateSpectrumCommand:

Public Member Functions

 CalculateSpectrumCommand (ICalculator &calculator_, std::string inputFilePath_, std::string outputFilePath_)
 Constructs a new CalculateSpectrumCommand.
 
void execute () override
 Executes the command to calculate the spectrum.
 
- Public Member Functions inherited from ICommand
virtual ~ICommand ()=default
 Virtual destructor.
 

Detailed Description

Command to calculate the spectrum using a given calculator.

Encapsulates a request to calculate a particle spectrum, parameterized by:

  • a reference to an ICalculator implementation,
  • input / output file paths.

This decouples the invocation site from the actual calculator type and makes it easier to extend with other commands later.

Definition at line 105 of file Interface.h.

Constructor & Destructor Documentation

◆ CalculateSpectrumCommand()

CalculateSpectrumCommand::CalculateSpectrumCommand ( ICalculator calculator_,
std::string  inputFilePath_,
std::string  outputFilePath_ 
)
inline

Constructs a new CalculateSpectrumCommand.

Parameters
calculatorReference to the calculator used for the spectrum.
inputFilePathPath to the input model file.
outputFilePathPath to the file where the spectrum will be written.

Definition at line 119 of file Interface.h.

Member Function Documentation

◆ execute()

void CalculateSpectrumCommand::execute ( )
inlineoverridevirtual

Executes the command to calculate the spectrum.

Simply forwards the stored input/output paths to the underlying ICalculator instance.

Implements ICommand.

Definition at line 128 of file Interface.h.


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