User class definitions

This commit is contained in:
Joel Thomas
2026-02-18 13:14:08 +05:30
parent 7c17576e8c
commit b213cb1698
10 changed files with 98 additions and 21 deletions
@@ -4,18 +4,19 @@ Date: 17-02-2026
*/
#pragma once
#include <vector>
#include <map>
#include <memory>
#include "User.h"
#include "Restaurant.h"
#include "MenuItem.h"
using restaurants = std::vector<Restaurant*>;
using restaurants = std::map<int, std::shared_ptr<Restaurant>>;
class RestaurantOwner : public User
{
private:
restaurants m_restaurants;
public:
void addRestaurant(Restaurant*);
void addRestaurant(std::shared_ptr<Restaurant>);
restaurants& getRestaurants();
};