-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenu.h
More file actions
126 lines (103 loc) · 2.75 KB
/
Menu.h
File metadata and controls
126 lines (103 loc) · 2.75 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/********************************************************************************************
* @file Menu.h
*
* @brief Menu header file
*
* @author Aysenur Bolat
*
* @version V1.0
*
* @date 28. December 2018
*********************************************************************************************/
#ifndef MENU_H
#define MENU_H
#include <iostream>
#include <vector>
#include <sstream>
#include <algorithm>
#include "Refrigerator.h"
#include "Dishwasher.h"
#include "Washing_Machine.h"
#include "Menu.h"
using namespace std;
/** class Menu
* brief an abstract menu
* details This abstract class incorporates properties of menu
* in order to simplfy usage of the inventory program
*/
class Menu
{
public:
/// create a Menu constructor
Menu();
/// destruct a Menu
~Menu();
/**
\brief Print refrigerator properties that is stored in vector
\return void
*/
void printRefrigerator();
/**
\brief Print dishwasher properties that is stored in vector
\return void
*/
void printDishwasher();
/**
\brief Print washing machine properties that is stored in vector
\return void
*/
void printWashingMachine();
/**
\brief Print all vectors of refrigerator, dishwasher and washing machine
\return void
*/
void printVector();
/**
\brief Set refrigerator ID for the process that changes the number of products
\ according to their IDs.
\return void
*/
void refrigeratorID();
/**
\brief Set dishwasher ID for the process that changes the number of products
\ according to their IDs.
\return void
*/
void dishwasherID();
/**
\brief Set washing machine ID for the process that changes the number of products
\ according to their IDs.
\return void
*/
void washingmachineID();
/**
\brief Find the refrigerator location according to its ID and change the number of refrigerators
\return void
*/
void findRefID(string ID);
/**
\brief Find the dishwasher location according to its ID and change the number of dishwashers
\return void
*/
void findDishID(string ID);
/**
\brief Find the washing machine location according to its ID and change the number of washing machines
\return void
*/
void findWashID(string ID);
/**
\brief Change the number of products
\return void
*/
void changeNumberOfProduct();
/**
\brief Main menu prototype
\return void
*/
void mainMenu();
protected:
vector<Refrigerator> vecOfRefrigerator;
vector<Dishwasher> vecOfDishwasher;
vector<Washing_Machine> vecOfWashingMachine;
};
#endif