-
Notifications
You must be signed in to change notification settings - Fork 0
/
controller.h
executable file
·36 lines (34 loc) · 989 Bytes
/
controller.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
#ifndef EQUALITYCHECKER_CONTROLLER_H
#define EQUALITYCHECKER_CONTROLLER_H
#include "processer.h"
#include "csv_writer.h"
#include "source_code.h"
#include "source_code_reader.h"
#include <vector>
class controller {
public:
static controller& instance();
controller(const controller&) = delete;
controller operator=(const controller&) = delete;
private:
controller() = default;
~controller() = default;
private:
std::string input_path;
std::string output_path;
std::vector<source_code_pair> data;
std::vector<processer> processers;
private:
void read_file();//读取程序对
void process();//运行
void write_csv();//写如csv
public:
void start();
void set_input_path(const std::string &input_path){
this->input_path = input_path;
};
void set_output_path(const std::string &output_path){
this->output_path = output_path;
};
};
#endif //EQUALITYCHECKER_CONTROLLER_H