| Return Type | Function name | Arguments |
|---|---|---|
| void | hdsXtag::Generate | (hzChain&,hzHttpEvent*,unsigned int&,) |
Declared in file: hzDissemino.h
Defined in file : hdsGenerate.cpp
Function Logic:
Function body:
void hdsXtag::Generate (hzChain& C, hzHttpEvent* pE, unsigned int& nLine)
{
_hzfunc("hdsHtag::Generate") ;
hdsVE* pVE ;
hzString S ;
uint32_t n ;
if (m_Line != nLine)
{
C.AddByte(CHAR_NL) ;
for (n = m_Indent ; n ; n--)
C.AddByte(CHAR_TAB) ;
nLine = m_Line ;
}
for (pVE = Children() ; pVE ; pVE = pVE->Sibling())
{
if (pVE->m_strPretext)
{
S = pVE->m_strPretext ;
if (pE && (pVE->m_flagVE & VE_PT_ACTIVE))
C << m_pApp->ConvertText(S, pE) ;
else
C << S ;
}
pVE->Generate(C, pE, nLine) ;
}
if (m_strContent)
{
S = m_strContent ;
if (pE && m_flagVE & VE_CT_ACTIVE)
C << m_pApp->ConvertText(S, pE) ;
else
C << S ;
}
}