-
Notifications
You must be signed in to change notification settings - Fork 1
/
ContaPoupanca.h
60 lines (45 loc) · 1.61 KB
/
ContaPoupanca.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* ContaPoupanca.h
*
* Created on: 16 de nov de 2019
* Author: rafaelamoreira
*/
#ifndef CONTAPOUPANCA_H_
#define CONTAPOUPANCA_H_
#include "Conta.h"
#include "Cliente.h"
#include "Erro.h"
#include "SaldoDiaBase.h"
class ContaPoupanca: public Conta {
protected:
vector<SaldoDiaBase> saldoDiaB;
public:
ContaPoupanca();
ContaPoupanca(Cliente * clienteNovo);
virtual ~ContaPoupanca();
bool debitar(double valor, std::string descricao) override;
//methods
void creditar(double valor, std::string descricao) override;
void adicionaElemento(SaldoDiaBase &novo );
void removeElemento(int elemento);
vector<SaldoDiaBase> getSaldoDiaBase();
//Write the member variables to stream objects
friend std::ostream& operator << (std::ostream& out, const ContaPoupanca& obj);
//Read data from stream object and fill it in member variables
friend std::istream& operator >> (std::istream& in, ContaPoupanca& obj);
string type() const override;
virtual void write(std::ostream& out) const override;
virtual void read(std::istream& in) override;
////getters and setters
//const Cliente& getCliente() const override;
//const std::vector<Movimentacao> getMovimentacoes() override;
//int getNumConta() const override;
////static int getProximoNumConta();
//double getSaldo() const override;
////Seta o ponteiro pro cliente
//void setCliente(Cliente *newCliente) override;
//vector<Movimentacao> obterExtrato(std::string dataIni, std::string dataFim) override;
//vector<Movimentacao> obterExtrato(std::string dataIni) override;
//vector<Movimentacao> obterExtratoMesAtual() override;
};
#endif /* CONTAPOUPANCA_H_ */