| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hdbObject::ImportJSON | (const hzChain&,) |
Declared in file: hzDatabase.h
Defined in file : hdbObject.cpp
Function Logic:
Function body:
hzEcode hdbObject::ImportJSON (const hzChain& J)
{
_hzfunc("hdbObject::ImportJSON") ;
hzChain err ;
chIter zi ;
hzEcode rc ;
if (!m_pClass) return E_NOINIT ;
if (!J.Size()) return E_NODATA ;
Clear() ;
zi = J ;
if (*zi != CHAR_CUROPEN)
return E_FORMAT ;
if (!m_pRoot)
m_pRoot = _obj_data::GetInstance(m_pClass) ;
rc = _import_json_r(err, zi, m_pRoot) ;
if (rc != E_OK)
{ threadLog("START IMPORT ERROR\n") ; threadLog(err) ; threadLog("END IMPORT ERROR\n") ; }
return rc ;
}