-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTask.h
35 lines (32 loc) · 824 Bytes
/
Task.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
// Task Milestone - Task Interface
// Task.h
//Sina Lahsaee
//129948162
// Chris Szalwinski
// v1.0 - 24/10/2015
// v2.0 - 23/02/2016
#ifndef Task_H_
#define Task_H_
#include <iostream>
#include <string>
class Task {
std::string name; // name of the task
std::string slots; // number of slots
std::string nextTask[2]; // names of the next tasks
const Task* pNextTask[2]; // addresses of the next tasks
static size_t field_width; // current maximum field width
public:
enum Quality {
passed,
redirect
};
Task(const std::string&);
bool validate(const Task&);
const std::string& getName() const;
unsigned int getSlots() const;
const Task* getNextTask(Quality) const;
void display(std::ostream&) const;
static size_t getFieldWidth();
};
bool operator==(const Task&, const Task&);
#endif