kima2/src/core/sale.h

24 lines
456 B
C++

#ifndef SALE_H
#define SALE_H
#include "article.h"
#include <vector>
#include <boost/date_time.hpp>
class Article;
class Sale : public Entity
{
public:
int sumInCents();
void addArticle(std::shared_ptr<Article> articlePtr);
void removeArticle(const Article* articlePtr);
private:
boost::posix_time::ptime systemTime_{boost::posix_time::second_clock::local_time()};
std::vector<std::shared_ptr<Article>> articles_{};
};
#endif