-
Notifications
You must be signed in to change notification settings - Fork 0
/
JsonData.cpp
42 lines (35 loc) · 963 Bytes
/
JsonData.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
36
37
38
39
40
41
42
#include "JsonData.hpp"
/* *************************************************************************** *
* Constructor & Destructor *
* ****************************************************************************/
JsonData::JsonData(void) : _type(TYPE_NULL) {}
JsonData::JsonData(JsonData const& target)
{
if (this != &target)
{
*this = target;
}
else
{
// nothing to do
}
}
JsonData& JsonData::operator=(JsonData const& target)
{
if (this != &target)
{
this->_type = target._type;
this->_str = target._str;
this->_arr = target._arr;
this->_obj = target._obj;
}
else
{
// nothing to do
}
return *this;
}
JsonData::~JsonData(void) {}
/* *************************************************************************** *
* Public Member Functions *
* ****************************************************************************/