-
Notifications
You must be signed in to change notification settings - Fork 1
/
Movimentacao.h
45 lines (35 loc) · 1.01 KB
/
Movimentacao.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
/*
* Movimentacao.h
*
* Created on: 22 de set de 2019
* Author: rafaelamoreira
*/
#ifndef MOVIMENTACAO_H_
#define MOVIMENTACAO_H_
#include <string>
#include <iostream>
#include <ctime>
#include <fstream>
using namespace std;
class Movimentacao {
private:
time_t dataMov;
std::string descricao;
char debitoCredito;
double valor;
public:
Movimentacao();
Movimentacao(std::string descricao, char debitoCredito, double valor);
Movimentacao(time_t dataMov, std::string descricao, char debitoCredito, double valor);
virtual ~Movimentacao();
//Movimentacao(const Movimentacao &other);
time_t getDataMov() const;
char getDebitoCredito() const;
const std::string& getDescricao() const;
double getValor() const;
//Write the member variables to stream objects
friend std::ostream& operator << (std::ostream& out, const Movimentacao& obj);
//Read data from stream object and fill it in member variables
friend std::istream& operator >> (std::istream& in, Movimentacao& obj);
};
#endif /* MOVIMENTACAO_H_ */