-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBalanceManager.h
More file actions
51 lines (39 loc) · 1.25 KB
/
Copy pathBalanceManager.h
File metadata and controls
51 lines (39 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef BALANCEMANAGER_H
#define BALANCEMANAGER_H
#include <iostream>
#include <vector>
#include <windows.h>
#include <algorithm>
#include "income.h"
#include "incomeFile.h"
#include "expense.h"
#include "expensesFile.h"
#include "AdjuvantMethods.h"
using namespace std;
class BalanceManager{
IncomeFile incomeFile;
ExpensesFile expensesFile;
const int ID_OF_LOGGED_USER;
vector <Income> incomes;
vector <Expense> expenses;
Income enterNewInfoAboutIncome();
Expense enterNewInfoAboutExpense();
void showIncomeData();
public:
BalanceManager(string nameOfIncomeFile, string nameOfExpensesFile, int idOfLoggedUser)
: incomeFile(nameOfIncomeFile), expensesFile(nameOfExpensesFile) ,ID_OF_LOGGED_USER(idOfLoggedUser) {
incomes = incomeFile.fetchIncomesOfLoggedUserFromFile(ID_OF_LOGGED_USER);
expenses = expensesFile.fetchExpensesOfLoggedUserFromFile(ID_OF_LOGGED_USER);
}
double balance;
void addIncome();
void addExpense();
void showIncomes();
void showExpensesData();
void showBilanceFromCurrentMonth();
void showBilanceFromLastMonth();
void showIncomeDataFromLastMonth();
void showExpensesDataFromLastMonth();
void showBalanceFromSelectedPeriodOfTime();
};
#endif