36 lines
575 B
C++
36 lines
575 B
C++
//
|
|
// Created by quentin on 8/4/22.
|
|
//
|
|
|
|
#ifndef BUDGET_ACCOUNT_H
|
|
#define BUDGET_ACCOUNT_H
|
|
|
|
|
|
#include "payment.h"
|
|
#include "earning.h"
|
|
#include "../data/dateMoney.h"
|
|
#include <list>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
class Account {
|
|
public:
|
|
Account(std::list<Payment> payments, std::list<Earning> earnings, std::string name);
|
|
|
|
Account();
|
|
|
|
int getValue();
|
|
|
|
std::vector<DateMoney> getTimeline();
|
|
|
|
[[nodiscard]] const std::string &getName() const;
|
|
|
|
private:
|
|
std::list<Payment> payments;
|
|
std::list<Earning> earnings;
|
|
std::string name;
|
|
};
|
|
|
|
|
|
#endif //BUDGET_ACCOUNT_H
|