-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparser.h
More file actions
28 lines (20 loc) · 694 Bytes
/
Copy pathparser.h
File metadata and controls
28 lines (20 loc) · 694 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
#ifndef PARSER_INCLUDED
#define PARSER_INCLUDED
#include <bits/stdc++.h>
using namespace std;
// This file handles the parsing of the input data we are going to handle with.
// It also holds all the global variables we pare
extern string operation;
extern int last_instant, process_count;
extern vector<pair<string, int>> algorithms;
extern vector<tuple<string, int, int>> processes;
extern vector<vector<char>> timeline;
extern unordered_map<string, int> processToIndex;
// Results to be stored in the following
extern vector<int> finishTime;
extern vector<int> turnAroundTime;
extern vector<float> normTurn;
void parse_algorithms(string);
void parse_processes();
void parse();
#endif