-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSingleton.cpp
More file actions
29 lines (24 loc) · 1.13 KB
/
Singleton.cpp
File metadata and controls
29 lines (24 loc) · 1.13 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Singleton.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mgo <mgo@student.42seoul.kr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/10 13:29:55 by mgo #+# #+# */
/* Updated: 2022/10/10 13:30:04 by mgo ### ########.fr */
/* */
/* ************************************************************************** */
#include "Singleton.hpp"
#include <unistd.h>
Singleton::Singleton(void)
: ptr_sv_(NULL) {}
Singleton::~Singleton(void) {}
void Singleton::setServerPtr(Server* ptr_sv)
{
ptr_sv_ = ptr_sv;
}
Server* Singleton::getServerPtr(void)
{
return ptr_sv_;
}