Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
ModelWriter.h
Go to the documentation of this file.
1#ifndef MODEL_WRITER_H
2#define MODEL_WRITER_H
3
4#include <fstream>
5
6#include "LineProcessor.h"
7#include "ParamWriter.h"
8
29private:
30 LineProcessor lineProcessor;
31 ParamWriter paramwriter;
32
33public:
40 ModelWriter(LineProcessor& lineProcessor, ParamWriter& paramwriter);
41
51 void writeModel(std::ifstream& inputFile, std::ofstream& outputFile);
52
62 void writeParam(std::ofstream& paramFile, const std::unordered_map<std::string, double>& params);
63};
64
65#endif // MODEL_WRITER_H
Declares a line-based transformer for MARTY-generated C++ files.
Declares a small helper to write parameter maps to CSV files.
Processes lines of a template C++ file and injects custom code.
High-level helper for writing modified model code and parameter files.
Definition ModelWriter.h:28
void writeParam(std::ofstream &paramFile, const std::unordered_map< std::string, double > &params)
Writes parameters to the parameter file.
void writeModel(std::ifstream &inputFile, std::ofstream &outputFile)
Processes the model source and writes the transformed file.
Helper class to serialize parameter values to a text stream.
Definition ParamWriter.h:29