aboutsummaryrefslogtreecommitdiff
path: root/cpp00/ex01/PhoneBook.hpp
blob: c4f8a23d951650b08b11e044e42fcd55fd507950 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef PHONE_BOOK_HPP
# define PHONE_BOOK_HPP

# define CONTACTS_SIZE 8

# include <string>
# include "Contact.hpp"

class PhoneBook
{
public:
	PhoneBook();
	bool add(Contact contact);
	Contact* search(std::string needle);
private:
	Contact contacts[CONTACTS_SIZE];
	int contacts_len;
};

#endif  // PHONE_BOOK_HPP