-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelper.hpp
38 lines (29 loc) · 915 Bytes
/
helper.hpp
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
#ifndef HELPER
#define HELPER
// #include "Schedule.hh"
#include <vector>
#include <string>
#include <fstream>
#include <sstream>
#include <iostream>
#include <cstdlib>
#include <cctype>
#include <list>
#include <algorithm>
#include <chrono>
#include <ctime>
typedef std::chrono::milliseconds milli;
typedef std::chrono::time_point<std::chrono::system_clock> time_point;
namespace help {
typedef unsigned int id_type;
//legge l'id di dipendenza
unsigned long read_id(std::string& s);
// crea un vettore di vettori di stringhe da file
void create_vector(const std::string& file_name, std::vector<std::vector<std::string> >& v);
//controlla se la stringa di dipendenze è vuota
bool check_empty(const std::string& s);
unsigned int max(std::vector<double>&);
unsigned int min(std::vector<double>&);
void time_consumption(time_point start, time_point finish, std::ofstream &ofs);
}
#endif