-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathjava_servlet.cpp
35 lines (32 loc) · 903 Bytes
/
java_servlet.cpp
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
#include "java_servlet.hpp"
namespace hi
{
java_servlet::java_servlet()
: SERVLET(0), CTOR(0), HANDLER(0), GET_INSTANCE(0), t(time(0))
{
}
java_servlet::java_servlet(const java_servlet &other)
: SERVLET(other.SERVLET), CTOR(other.CTOR), HANDLER(other.HANDLER), GET_INSTANCE(other.GET_INSTANCE), t(other.t)
{
}
java_servlet &java_servlet::java_servlet::operator=(const java_servlet &right)
{
if (this == &right)
{
return *this;
}
this->SERVLET = right.SERVLET;
this->CTOR = right.CTOR;
this->HANDLER = right.HANDLER;
this->GET_INSTANCE = right.GET_INSTANCE;
this->t = right.t;
return *this;
}
java_servlet::~java_servlet()
{
this->SERVLET = 0;
this->CTOR = 0;
this->HANDLER = 0;
this->GET_INSTANCE = 0;
}
} //namespace hi