-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.h
More file actions
33 lines (24 loc) · 811 Bytes
/
menu.h
File metadata and controls
33 lines (24 loc) · 811 Bytes
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
#ifndef MENU_HPP
#define MENU_HPP
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
class Menu {
private:
unordered_map<int, string> items;
public:
// Constructor
Menu();
// Adds a new menu item
void addMenuItem(int itemID, const string& itemDetails);
// Updates the details of an existing menu item
void updateMenuItem(int itemID, const string& updatedDetails);
// Retrieves the details of a menu item by ID
string getMenuItemDetails(int itemID) const;
// Filters the menu based on allergens
vector<pair<int, string>> filterMenu(const vector<string>& allergens) const;
// Displays the menu
void displayMenu(const vector<pair<int, string>>& menuToDisplay) const;
};
#endif // MENU_HPP