more on article

This commit is contained in:
Martin Brodbeck 2018-07-12 13:36:13 +02:00
parent 7063637ad4
commit 2c5368c621
2 changed files with 5 additions and 1 deletions

View file

@ -17,3 +17,5 @@ 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_; }

View file

@ -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_{};