forked from victorgorgonho/RealEstateCpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Imovel.h
52 lines (43 loc) · 1.33 KB
/
Imovel.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
#ifndef IMOVEL_H
#define IMOVEL_H
#define IMOVEL_PARA_VENDER 1
#define IMOVEL_PARA_ALUGAR 2
#define APARTAMENTO 1
#define TERRENO 2
#define CASA 3
#define Nulo -1
#include "Endereco.h"
#include <iostream>
#include <string>
class Imovel
{
public:
Imovel();
virtual ~Imovel();
double getValor();
int getId();
int getTipoOferta();
int getTipoImovel();
Endereco getEndereco();
std::string getTituloAnuncio();
std::string getDescricao();
void setId(int id);
void setValor(double valor);
void setTipoOferta(int tipoOferta);
void setTipoImovel(int tipoImovel);
void setEndereco(std::string logradouro, std::string bairro, std::string cidade, std::string cep, int numero);
void setTituloAnuncio(std::string tituloAnuncio);
void setDescricao(std::string descricao);
virtual void EditaImovel(std::string novaString, double novoDouble, int modificacao) = 0;
virtual std::string toString() = 0;
virtual std::string toStringSalvar() = 0;
protected:
int id;
int tipoImovel;
double valor;
int tipoOferta;
Endereco endereco;
std::string tituloAnuncio;
std::string descricao;
};
#endif // IMOVEL_H