-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDataFile.h
57 lines (50 loc) · 1.7 KB
/
DataFile.h
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
51
52
53
54
55
56
57
#ifndef _DATA_FILE_H
#include <string>
#include <vector>
#include <iostream>
// Définition de la classe
class DataFile {
private:
std::string _file_name;
double _t0, _tfinal, _dt;
double _x0, _y0, _a, _b, _c, _d, _e, _f;
std::string _mesh_name;
std::string _scheme;
std::string _velocity_choice;
std::string _initial_condition_choice;
std::string _numerical_flux_choice;
std::string _results;
bool _if_mesh_name;
bool _if_t0;
bool _if_tfinal;
bool _if_dt;
bool _if_scheme;
bool _if_velocity_choice;
bool _if_initial_condition_choice;
bool _if_numerical_flux_choice;
bool _if_results;
public: // Méthodes et opérateurs de la classe
DataFile(std::string file_name);
void ReadDataFile();
std::string Get_file_name() const {return _file_name;}
void Adapt_dt(double dt){_dt = dt;};
double Get_t0() const {return _t0;};
double Get_tfinal() const {return _tfinal;};
double Get_dt() const {return _dt;};
double Get_param_x0() const { return _x0;}
double Get_param_y0() const { return _y0;}
double Get_param_a() const { return _a;}
double Get_param_b() const { return _b;}
double Get_param_c() const { return _c;}
double Get_param_d() const { return _d;}
double Get_param_e() const { return _e;}
double Get_param_f() const { return _f;}
std::string Get_mesh_name() const {return _mesh_name;};
std::string Get_scheme() const {return _scheme;};
std::string Get_velocity_choice() const {return _velocity_choice;};
std::string Get_initial_condition_choice() const {return _initial_condition_choice;};
std::string Get_numerical_flux_choice() const {return _numerical_flux_choice;};
std::string Get_results() const {return _results;};
};
#define _DATA_FILE_H
#endif