more on article
This commit is contained in:
parent
7063637ad4
commit
2c5368c621
2 changed files with 5 additions and 1 deletions
|
@ -16,4 +16,6 @@ bool Article::isSold() { return salePtr_ ? true : false; }
|
||||||
|
|
||||||
std::string Article::getDescription() { return description_; }
|
std::string Article::getDescription() { return description_; }
|
||||||
|
|
||||||
Seller* Article::getSeller() { return sellerPtr_.get(); }
|
Seller* Article::getSeller() { return sellerPtr_.get(); }
|
||||||
|
|
||||||
|
int Article::getPrice() { return price_; }
|
|
@ -9,6 +9,7 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
class Seller;
|
class Seller;
|
||||||
|
class Sale;
|
||||||
|
|
||||||
class Article : public Entity
|
class Article : public Entity
|
||||||
{
|
{
|
||||||
|
@ -24,6 +25,7 @@ class Article : public Entity
|
||||||
|
|
||||||
std::string getDescription();
|
std::string getDescription();
|
||||||
Seller* getSeller();
|
Seller* getSeller();
|
||||||
|
int getPrice();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::shared_ptr<Seller> sellerPtr_{};
|
std::shared_ptr<Seller> sellerPtr_{};
|
||||||
|
|
Loading…
Reference in a new issue