-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprocess.h
49 lines (41 loc) · 903 Bytes
/
process.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
#ifndef PROCESS_H
#define PROCESS_H
#include <bits/stdc++.h>
#include <QString>
#include <QStringList>
#include <QFile>
#include <QTextStream>
class process
{
private:
QString ID, state, fileName, IR;
int AC, temp, PC;
public:
process();
//setter functrion
void setID(QString);
void setFileName(QString);
void setState(QString);
void setIR(QString);
void setAC(int);
void setTemp(int);
void setPC(int);
//getter function
QString getID();
QString getState();
QString getFileName();
QString getIR();
int getAC();
int getTemp();
int getPC();
};
void convertState(QString, process); //format: ID,File_Name,State,I_R,ac,pc,temp
class Signal{
public:
void Create(QStringList, process);
void Run(QString);
void show(QString);
void kill(QString);
void block_unblock(QString,QString);
};
#endif // PROCESS_H