more on articles
This commit is contained in:
parent
4d8396fac1
commit
8b08fad47a
2 changed files with 18 additions and 22 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include "entity.h"
|
||||
#include "seller.h"
|
||||
#include "sale.h"
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
@ -17,11 +18,15 @@ public:
|
|||
void setArticleNo(int articleNo);
|
||||
void setPrice(int price);
|
||||
void setDescription(const std::string& description);
|
||||
bool isSold();
|
||||
void setSale(const std::shared_ptr<Sale> salePtr);
|
||||
void setSeller(std::shared_ptr<Seller> sellerPtr);
|
||||
private:
|
||||
std::shared_ptr<Seller> sellerPtr{};
|
||||
int articleNo{};
|
||||
int price{};
|
||||
std::string description{};
|
||||
std::shared_ptr<Seller> sellerPtr_{};
|
||||
std::shared_ptr<Sale> salePtr_{};
|
||||
int articleNo_{};
|
||||
int price_{};
|
||||
std::string description_{};
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue