2018-07-13 13:04:19 +02:00
|
|
|
#ifndef MARKETPLACE_H
|
|
|
|
#define MARKETPLACE_H
|
|
|
|
|
|
|
|
#include "article.h"
|
|
|
|
#include "sale.h"
|
|
|
|
#include "seller.h"
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class Marketplace
|
|
|
|
{
|
|
|
|
public:
|
2018-07-16 12:00:17 +02:00
|
|
|
Marketplace();
|
2018-07-13 13:04:19 +02:00
|
|
|
void storeToDb();
|
|
|
|
void loadFromDb();
|
2018-07-16 15:30:24 +02:00
|
|
|
std::vector<std::unique_ptr<Seller>>& getSellers();
|
2018-07-16 18:04:25 +02:00
|
|
|
int getNextSellerNo();
|
2018-07-16 12:00:17 +02:00
|
|
|
|
2018-07-13 13:04:19 +02:00
|
|
|
private:
|
2018-07-16 15:30:24 +02:00
|
|
|
std::vector<std::unique_ptr<Seller>> sellers_;
|
|
|
|
std::vector<std::unique_ptr<Sale>> sales_;
|
2018-07-13 13:04:19 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|