-
Notifications
You must be signed in to change notification settings - Fork 0
/
webServer.hpp
36 lines (33 loc) · 1.43 KB
/
webServer.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* webServer.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hlakhal- <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/05 23:05:17 by hlakhal- #+# #+# */
/* Updated: 2024/01/17 22:22:23 by hlakhal- ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef WEBSERVER_HPP
#define WEBSERVER_HPP
#include "Location.hpp"
#include "Server.hpp"
class webServer
{
private:
std::vector<Server> servers;
std::string nameFile;
public:
webServer();
webServer(const std::string &nameFile);
webServer(const webServer& other);
webServer& operator=(const webServer& other);
void loadConfigFile();
void loadLocation();
void addServer(Server *s);
Server* createServer();
std::vector<Server> getServer() const;
~webServer();
};
#endif