-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinput_data.hpp
More file actions
executable file
·50 lines (37 loc) · 1.23 KB
/
input_data.hpp
File metadata and controls
executable file
·50 lines (37 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef __INPUT_DATA_HPP__
#define __INPUT_DATA_HPP__
#include <list>
#include <set>
#include <utility>
#include <string>
#include <vector>
struct Prop_info;
struct Diag_info;
struct Eigen_info;
struct Cap_info;
struct Dip_info; // Test only
struct Input_data {
std::vector<std::string> analyze_input(std::string input, std::vector<std::string> input_sections);
void get_number(std::string result, int& number);
void get_number(std::string result, double& number);
void get_list(std::string result, std::set<unsigned>& numlist);
void init_frontend(std::vector<std::string> result);
void init_diag(std::vector<std::string> result);
void init_eigen(std::vector<std::string> result);
void init_popana(std::string result);
void init_propag(std::vector<std::string> result);
void init_cap(std::vector<std::string> result);
void init_dip(std::vector<std::string> result);
bool is_empty_section(std::vector<std::string> keys);
public:
struct Prop_info* propag;
struct Diag_info* diag;
struct Dip_info* dip;
struct Eigen_info* eig;
struct Cap_info* cap;
std::string backend;
std::list<std::pair<std::string, std::set<unsigned> > > el_groups;
Input_data();
~Input_data();
};
#endif // #ifndef __INPUT_DATA_HPP__