Return Type | Function name | Arguments |
---|---|---|
void | hdsApp::InPageQuery | (hzHttpEvent*,) |
Declared in file: hzDissemino.h
Defined in file : hdsSystem.cpp
Function Logic:
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 ; }