-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTask.h
37 lines (30 loc) · 829 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
36
37
// Name:Badal Sarkar
// Seneca Student ID:137226189
// Seneca email:[email protected]
// Date of completion:December 1, 2019
//
// I confirm that I am the only author of this file
// and the content was created entirely by me.
#ifndef TASK_H
#define TASK_H
#include <deque>
#include <string>
#include "Item.h"
#include "CustomerOrder.h"
class Task:public Item{
std::deque<CustomerOrder> m_orders;
Task* m_pNextTask {nullptr};
public:
Task(const std::string& record);
Task(Task&)=delete;
Task(Task&&)=delete;
Task& operator=(const Task&)=delete;
Task& operator=(Task&&)=delete;
void runProcess(std::ostream&);
bool moveTask();
void setNextTask(Task&);
bool getCompleted(CustomerOrder&);
void validate(std::ostream&);
Task& operator+=(CustomerOrder&&);
};
#endif