added task-class
This commit is contained in:
parent
469ad9bb65
commit
efd4e8fdf5
5 changed files with 113 additions and 17 deletions
28
task.h
Normal file
28
task.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#ifndef TASK_H
|
||||
#define TASK_H
|
||||
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <sstream>
|
||||
|
||||
class Task
|
||||
{
|
||||
public:
|
||||
Task()=delete;
|
||||
Task(int pid, const std::string &name, const std::vector<std::pair<std::string, std::string>> &program);
|
||||
private:
|
||||
int pid,
|
||||
pc,
|
||||
acc,
|
||||
blockTicks;
|
||||
std::string name;
|
||||
std::vector<std::pair<std::string, std::string>> program;
|
||||
bool active;
|
||||
};
|
||||
|
||||
|
||||
#endif //TASK_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue