-
Notifications
You must be signed in to change notification settings - Fork 0
/
Contact.hpp
51 lines (44 loc) · 1.95 KB
/
Contact.hpp
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Contact.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: abensett <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/06/11 18:58:21 by abensett #+# #+# */
/* Updated: 2022/06/11 19:14:05 by abensett ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef CONTACT_H_
# define CONTACT_H_
#include <iostream>
#include <string>
#include <cctype>
#include <iomanip>
#include <sstream>
#include <string>
/* cctype -> isalpha, isdigit
iomanip -> setw,
sstream -> used for conversion thanks to streams */
using std::string;
class Contact {
public :
Contact(void); //constructeur
~Contact(void); //destructeur = procedures sans type de retour
string get_first_name(void) const; //fonction membre
string get_last_name(void) const; //le const empeche la modification de l'instance courante
string get_nickname(void) const; //There will never this->attribut = ...
string get_phone(void) const;
string get_darkest_secret(void) const;
string get_first_name_short(void) const;
string get_last_name_short(void) const;
string get_nickname_short(void) const;
void ChangeContact(void);
private :
string _first_name;
string _last_name;
string _nickname;
string _phone;
string _darkest_secret;
};
#endif