Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
Extractor.h
Go to the documentation of this file.
1#ifndef EXTRACTOR_H
2#define EXTRACTOR_H
3
4#include <string>
5#include <vector>
6#include <regex>
7#include <fstream>
8
32class Extractor {
33public:
42 struct Parameter {
43 std::string type;
44 std::string name;
45 bool complex;
46 };
47
58 static std::vector<Parameter> extract(const std::string& filename);
59};
60
61#endif // EXTRACTOR_H
Parses C++ code to find MARTY parameter declarations.
Definition Extractor.h:32
static std::vector< Parameter > extract(const std::string &filename)
Extracts all parameter declarations from a given C++ file.
Definition Extractor.cpp:3
Simple descriptor for a discovered parameter.
Definition Extractor.h:42
bool complex
True for complex_t, false for real_t.
Definition Extractor.h:45
std::string type
C++ variable name.
Definition Extractor.h:43
std::string name
Logical parameter name from the initializer.
Definition Extractor.h:44