」 feat: added getserver in config to get a server from a server_name

This commit is contained in:
2025-04-22 11:17:05 +02:00
parent 773a54d7cd
commit 8ff043802c
3 changed files with 31 additions and 11 deletions

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/14 12:20:06 by adjoly #+# #+# */
/* Updated: 2025/04/18 10:03:09 by adjoly ### ########.fr */
/* Updated: 2025/04/22 10:57:26 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -24,10 +24,11 @@ class Config {
Logger *getLogger(void) { return _log; }
std::vector<Server *> *getServers(void) { return _servers; }
std::vector<Server *> getServers(void) { return _servers; }
Server *getServer(const std::string &);
private:
std::vector<Server *> *_servers;
std::vector<Server *> _servers;
};
}; // namespace config