-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTask.h
35 lines (31 loc) · 835 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
//Name: Chaoyi Wu
// Seneca Student ID: 154330179
// Seneca email: [email protected]
// Date of completion: Nov. 29th
//
// I confirm that the content of this file is created by me,
// with the exception of the parts provided to me by my professor.
#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;
public:
Task(const std::string&);
void runProcess(std::ostream&);
bool moveTask();
void setNextTask(Task&);
bool getCompleted(CustomerOrder&);
void validate(std::ostream&);
Task& operator+=(CustomerOrder&&);
Task(const Task&) = delete;
Task& operator=(const Task&) = delete;
Task(Task&&) = delete;
Task& operator=(Task&&) = delete;
};
#endif