On the condition that the user's access matches that of this <xdiv> tag, aggregate to the supplied chain (the HTML body), all child tags. Do nothing otherwise. Returns: None
| Return Type | Function name | Arguments |
|---|---|---|
| void | hdsXdiv::Generate | (hzChain&,hzHttpEvent*,uint32_t&,) |
Declared in file: hzDissemino.h
Defined in file : hdsGenerate.cpp
Function Logic:
Function body:
void hdsXdiv::Generate (hzChain& C)hzHttpEvent* pE, uint32_t& nLine,
{
// On the condition that the user's access matches that of this <xdiv> tag, aggregate to the supplied chain (the HTML body), all child tags. Do
// nothing otherwise.
//
// Arguments: 1) C The HTML output chain
// 2) pE The HTTP event being responded to
// 3) nLine Line number tracker (controls NL printing)
//
// Returns: None
_hzfunc("hdsXdiv::Generate") ;
hdsVE* pVE ; // Visible entity
hdsInfo* pInfo ; // Client session data
bool bShow ; // Print or not to print
bShow = false ;
pInfo = (hdsInfo*) pE->Session() ;
if (!pInfo)
{
if (m_Access == ACCESS_PUBLIC || m_Access == ACCESS_NOBODY)
bShow = true ;
}
else
{
if (m_Access == ACCESS_PUBLIC || (m_Access == ACCESS_ADMIN && pInfo->m_Access & ACCESS_ADMIN)
|| (pInfo->m_Access & ACCESS_MASK) == m_Access)
bShow = true ;
}
if (bShow)
{
for (pVE = Children() ; pVE ; pVE = pVE->Sibling())
pVE->Generate(C, pE, nLine) ;
}
}