-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSystem.h
More file actions
42 lines (33 loc) · 667 Bytes
/
System.h
File metadata and controls
42 lines (33 loc) · 667 Bytes
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
#pragma once
#include <iostream>
#include <fstream>
#include<string>
#include <regex>
#include <conio.h>
#include <cstdio>
#include <vector>
#include "MachineBuilder.h"
#include "MachineParser.h"
#define INDENT "\t\t\t\t\t "
using std::cout;
using std::cin;
using std::endl;
using std::string;
using std::ifstream;
using std::ofstream;
using std::regex;
using std::sregex_iterator;
using std::vector;
class System {
private:
vector<Machine> machines;
MachineBuilder builder;
MachineParser parser;
public:
System() {
builder = *(new MachineBuilder());
parser = *(new MachineParser(&builder));
}
void operate();
Machine& getMachine(unsigned id);
};