JsonData.cpp
1 #include "JsonData.hpp" 2 3 JsonData::JsonData(void) : _type(TYPE_NULL) {} 4 5 JsonData::JsonData(JsonData const& target) 6 { 7 if (this != &target) 8 *this = target; 9 } 10 11 JsonData& JsonData::operator=(JsonData const& target) 12 { 13 if (this != &target) 14 { 15 this->_type = target._type; 16 this->_str = target._str; 17 this->_arr = target._arr; 18 this->_obj = target._obj; 19 } 20 return *this; 21 } 22 23 JsonData::~JsonData(void) {}