-
Notifications
You must be signed in to change notification settings - Fork 0
/
HeadChef.h
64 lines (58 loc) · 1.66 KB
/
HeadChef.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef HEADCHEF_H
#define HEADCHEF_H
#include "ChefHandler.h"
#include "ComplaintsHandler.h"
/**
* @class HeadChef
* @brief Represents a Head Chef responsible for complete the plating.
*/
//class HeadChef:public ChefHandler, public ComplaintsHandler
class HeadChef: public ComplaintsHandler, public ChefHandler
{
public:
/**
* @brief Construct a new HeadChef object.
*
* This constructor initializes a new instance of the HeadChef class.
*/
HeadChef();
/**
* @brief Destroy the HeadChef object.
*
* This virtual destructor is responsible for cleaning up any resources
* associated with the HeadChef object.
*/
virtual ~HeadChef();
/**
* @brief Handle a food order.
*
* This function is responsible for completing the plating and adding the final touches before order can be sent to a customer
*
* @param order An order object representing the customer order.
*/
void handleOrder(Order* order);
/**
* @brief Handle complaint.
*
* This function is responsible for handling omplaints.
*
* @param c A customer complaint.
* @param degreee The degree severity of the complaint.
*/
void handleComplaint(string c, int degree);
/**
* @brief send message to a Colleague.
*
* This function is responsible for sending a message .
*
*/
void send();
/**
* @brief Get next handler.
*
* This function is responsible for getting the next complaints handler .
*
*/
ComplaintsHandler* getNext(){return next;}
};
#endif