-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSimple_User.h
More file actions
58 lines (49 loc) · 1.64 KB
/
Copy pathSimple_User.h
File metadata and controls
58 lines (49 loc) · 1.64 KB
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
//
// Created by Utente on 28/05/2018.
//
#ifndef PROGETTO_SIMPLE_USER_H
#define PROGETTO_SIMPLE_USER_H
#include "User.h"
#include "Date.h"
#include "Graph.hpp"
#include <iostream>
#include <vector>
using namespace std;
class Simple_User : public User {
public:
//COSTRUTTORI _edgesNumber DISTRUTTORE
Simple_User(const string &ID, const string &name, const string &surname, const Date &birthday, const Address &address, const string &gender);
Simple_User(){};
~Simple_User();
//METODI SETTERS
void setSurname(const string &surname);
void setGender(const string &g);
void setSpouseID(Graph<User*,string,string> &grafo);
void setMotherID(Graph<User*,string,string> &grafo);
void setFatherID(Graph<User*,string,string> &grafo);
//METODI GETTERS
string getGender();
string getSurname();
string getSpouseID();
string getMotherID();
string getFatherID();
int getDislikesNumber();
int getLikesNumber();
//ALTRI METODI GETTERS PER IL CONTEGGIO DI AMICI,PARENTI _edgesNumber CONOSCENTI
int getFriendsNumber(Graph<User*,string,string> &grafo);
int getAcquaintancesNumber(Graph<User*,string,string> &grafo);
int getRelativesNumber(Graph<User*,string,string> &grafo, int &cont, bool risali, string startid, bool count_wife);
//METODI PER AGGIUNTA DI UN LIKE O DISLIKE DA PARTE DELL'UTENTE
void addDislikesNumber();
void addLikesNumber();
private:
//VARIABILI PRIVATE
int _likesNumber = 0;
int _dislikesNumber = 0;
string _gender;
string _surname;
string _fatherID = "";
string _motherID = "";
string _spouseID = "";
};
#endif //PROGETTO_SIMPLE_USER_H