Return TypeFunction nameArguments
hzEcodehdbObject::ImportJSON(const hzChain&,)

Declared in file: hzDatabase.h
Defined in file : hdbObject.cpp

Function Logic:

0:START 1:!m_pClass 2:Return E_NOINIT 3:!J.Size() 4:Return E_NODATA 5:hdbObject::Clear zi 6:*zi!=(char)123 7:Return E_FORMAT 8:!m_pRoot 9:_obj_data::GetInstance m_pRoot 10:_import_json_r rc 11:rc!=E_OK 12: No text 13:Return rc

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 ;
}