User class definitions
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user