Browse Source

disable ctor

master
Martin Brodbeck 2 years ago
parent
commit
710b4cf9fb
  1. 1
      src/core/article.h
  2. 3
      src/core/sale.h
  3. 1
      src/core/seller.h

1
src/core/article.h

@ -16,6 +16,7 @@ class Article : public EntityUuid
public:
Article() = default;
Article(int price);
Article(const Article&) = delete;
virtual ~Article() = default;
void setArticleNo(int articleNo);

3
src/core/sale.h

@ -17,6 +17,9 @@ using ArticlesVec = std::vector<Article*>;
class Sale : public EntityUuid
{
public:
Sale() = default;
Sale(const Sale&) = delete;
virtual ~Sale() = default;
void addArticle(Article* articlePtr);
void setTimestamp(const std::string& timestamp);

1
src/core/seller.h

@ -14,6 +14,7 @@ class Seller : public EntityInt
{
public:
Seller() = default;
Seller(const Seller&) = delete;
virtual ~Seller() = default;
Seller(const std::string& firstName, const std::string& lastName, int sellerNo = 0,
int numArticlesOffered = 0);

Loading…
Cancel
Save