Quantum 3xplorer (Q3)
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
18
namespace
q3
{
19
20
class
InputParser
{
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
q3::InputParser
Definition
init.hpp:20
q3::InputParser::parse
virtual InputData parse(const std::string &filename) const =0
q3::InputParser::~InputParser
virtual ~InputParser()=default
data.hpp
q3
Definition
q3_core_api.hpp:33
q3::InputData
Parsed input data — holds raw values read from input files.
Definition
data.hpp:27
src
io
input
parser
init.hpp
Generated by
1.9.8