-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRemaining.h
46 lines (38 loc) · 878 Bytes
/
Remaining.h
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
#ifndef REMAINING_H
#define REMAINING_H
/*
* Remaining.h
*/
#include <string>
#include "abbreviation.h"
#include "utils.h"
using namespace std;
class Remaining {
public:
Remaining();
~Remaining();
void removeRemaining();
void buy(int amount, string bc, string date, string p);
void updateRemaining(int amount);
void updateRemainingWithRet(int amount);
int getRemaining();
int getReturn();
string getPrice();
string getDate();
string getCompany();
string formatRemaining();
string formatRemaining2(string unit);
string formatRemaining3(Abbreviation abb);
void returned(int amount, string bc, string date);
void load(fstream* fio);
string price;
private:
string dayPurchased;
string company;
int remaining;
int returnNum;
string padding(string word);
string removeYear(string word);
Utils* utils;
};
#endif // REMAINING_H