Return TypeFunction nameArguments
voidhdsApp::InPageQuery(hzHttpEvent*,)

Declared in file: hzDissemino.h
Defined in file : hdsSystem.cpp

Function Logic:

0:START 1:hzHttpEvent::GetResource r r 2:IsAlpha(*r); 3:hzChain::AddByte 4:S hzChain::Clear hdbADP::GetObjRepos pRepos 5:!pRepos 6:rc 7:Goto fail 8:*r!=(char)46 9:rc 10:Goto fail 11:IsAlpha(*r); 12:hzChain::AddByte 13:S hzChain::Clear 14:*r!=(char)46 15:rc 16:Goto fail 17:val atom hzLogger::Out hdbObjRepos::Class hdbClass::GetMember hdbObjRepos::Exists rc 18:rc!=E_OK 19:Err2Txt hzLogger::Out 20:Goto fail 21:hzLogger::Out 22:objId 23:hzHttpEvent::SendAjaxResult 24: No text 25:fail 26:hzHttpEvent::SendAjaxResult 27: No text

Function body:

void hdsApp::InPageQuery (hzHttpEvent* pE)
{
   _hzfunc("hdsApp::InPageQuery") ;
   hzChain         Z ;
   hzAtom          atom ;
   hdbObjRepos*    pRepos ;
   const char*     r ;
   hzString        S ;
   hzString        val ;
   uint32_t        objId ;
   hzEcode         rc = E_OK ;
   r = pE->GetResource() ;
   for (r += 4; IsAlpha(*r) ; r++)
       Z.AddByte(*r) ;
   S = Z ;
   Z.Clear() ;
   pRepos = m_ADP.GetObjRepos(S) ;
   if (!pRepos)
       { rc = E_NOTFOUND ; goto fail ; }
   if (*r != CHAR_PERIOD)
       { rc = E_FORMAT ; goto fail ; }
   for (r++ ; IsAlpha(*r) ; r++)
       Z.AddByte(*r) ;
   S = Z ;
   Z.Clear() ;
   if (*r != CHAR_PERIOD)
       { rc = E_FORMAT ; goto fail ; }
   val = ++r ;
   atom = val ;
   m_pLog->Out("Doing Binary fetch on %s %s\n", *S, *val) ;
   rc = pRepos->Exists(objId, pRepos->Class()->GetMember(S), atom) ;
   if (rc != E_OK)
       { m_pLog->Out("Binary fech function failed. Err=%s\n", Err2Txt(rc)) ; goto fail ; }
   m_pLog->Out("%s. Located record %d\n", __func__, objId) ;
   if (objId)
   {
       pE->SendAjaxResult(HTTPMSG_OK) ;
       return ;
   }
fail:
   pE->SendAjaxResult(HTTPMSG_NOTFOUND) ;
   return ;
}