22 lines
No EOL
404 B
C++
22 lines
No EOL
404 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);
|
|
private:
|
|
boost::posix_time::ptime systemTime_{boost::posix_time::second_clock::local_time()};
|
|
std::vector<std::shared_ptr<Article>> articles_{};
|
|
};
|
|
|
|
#endif |