-
Notifications
You must be signed in to change notification settings - Fork 0
/
Perfil.h
55 lines (34 loc) · 1003 Bytes
/
Perfil.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
#ifndef PERFIL_H
#define PERFIL_H
#include <iostream>
#include <string>
#include <vector>
#include <list>
using namespace std;
class Publicacao;
class Perfil {
static int ultimoId;
protected:
string nome;
int id;
list<Publicacao*>* feitas;
list<Publicacao*>* recebidas;
vector<Perfil*>* seguidores;
public:
Perfil(string nome);
Perfil(int id, string nome);
virtual ~Perfil();
static void setUltimoId(int ultimoId);
static int getUltimoId();
int getId();
string getNome();
virtual void adicionarSeguidor(Perfil* seguidor) = 0;
virtual void publicar(string texto);
virtual void publicar(string texto, string data);
virtual void receber(Publicacao* p);
virtual list<Publicacao*>* getPublicacoesFeitas();
virtual list<Publicacao*>* getPublicacoesRecebidas();
virtual vector<Perfil*>* getSeguidores();
virtual void imprimir();
};
#endif // PERFIL_H