Loading...
Searching...
No Matches
init.hpp
Go to the documentation of this file.
1#pragma once
2
3/**
4 * InputParser — abstract interface for input file parsers.
5 *
6 * Defines the contract for parsing different input formats (YAML, QE)
7 * into a common InputData struct. Concrete implementations:
8 * yaml.hpp — YAMLInputParser
9 * qe.hpp — QEInputParser
10 *
11 * Use create_input_parser() from factory.hpp to obtain the right parser.
12 */
13
14#include <string>
15
16#include "io/input/data.hpp"
17
18namespace q3 {
19
21 public:
22 virtual ~InputParser() = default;
23
24 /**
25 * Parse the given input file and return the populated InputData.
26 */
27 virtual InputData parse(const std::string& filename) const = 0;
28};
29
30} // namespace q3
virtual InputData parse(const std::string &filename) const =0
virtual ~InputParser()=default
Parsed input data — holds raw values read from input files.
Definition data.hpp:27