-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathnfilesconstruct.h
54 lines (44 loc) · 1.14 KB
/
nfilesconstruct.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
#ifndef NFILESCONSTRUCT_H
#define NFILESCONSTRUCT_H
#include <string>
#include <vector>
#include <fstream>
#include "dataecsv.h"
using namespace std;
class NFilesConstruct
{
public:
string current_dir; //Текущая директория
string prefix_tmp; //Префикс для временного файла или файла с данными
string name_examples;
string name_neuronet;
string name_trainbp;
bool isFileExamples;
bool isFileNeuronet;
bool isFileTrainBP;
fstream fexamples;
fstream fneuronet;
fstream ftrainbp;
fstream tmp_fexamples;
fstream tmp_fneuronet;
fstream tmp_ftrainbp;
DataECSV dt_examples;
DataECSV dt_neuronet;
DataECSV dt_trainbp;
public:
NFilesConstruct();
NFilesConstruct(NFilesConstruct& obj);
NFilesConstruct& operator=(NFilesConstruct& obj);
public:
void init();
void fopen(ios_base::openmode mode);
void tmp_fopen(ios_base::openmode mode);
void fclose();
void tmp_fclose();
void fremove();
void tmp_fremove();
bool is_open();
bool is_tmp_open();
bool unionHeadBody();
};
#endif // NFILESCONSTRUCT_H