-
Notifications
You must be signed in to change notification settings - Fork 0
/
Process.hpp
27 lines (21 loc) · 1.08 KB
/
Process.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
#ifndef PROCESS_H
#define PROCESS_H
#include <iostream>
class Process
{
private:
std::string process_type_ = ""; /* 'C', Common Process or 'RT', RT-process */
long long int memory_size_; /* In the case that process takes up entire memory */
long long int pid_; /* Don't reassign PID's */
public:
Process();
Process(const Process &p); // default constructor
Process(const std::string &process_type, const long long int &memory_size, const long long int &pid); // parameterized constructor
void setProcessType(const std::string &process_type); // sets process_type
void setMemorySize(const long long int &memory_size); // sets memory_size
void setPID(const long long int &pid); // sets pid EXPLORE AUTO-INCREMENT
std::string getProcessType() const; // @return process type
long long int getMemorySize() const; // @return memory size
long long int getPID() const; // @return pid
}; //end Process
#endif // PROCESS_H