The <x> tag does not itself generate a HTML tag but instead inserts textual content into the parent tag. Returns: None
| Return Type | Function name | Arguments |
|---|---|---|
| void | hdsXtag::Generate | (hzChain&,hzHttpEvent*,uint32_t&,) |
Declared in file: hzDissemino.h
Defined in file : hdsGenerate.cpp
Function Logic:
Function body:
void hdsXtag::Generate (hzChain& C)hzHttpEvent* pE, uint32_t& nLine,
{
// The <x> tag does not itself generate a HTML tag but instead inserts textual content into the parent tag.
//
// 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("hdsHtag::Generate") ;
hdsVE* pVE ; // For processing subtags
hzString S ; // Temp string
uint32_t n ; // Tab counter
// Write out newline and tabs if the current tag's line is greater than the supplied line
if (m_Line != nLine)
{
C.AddByte(CHAR_NL) ;
for (n = m_Indent ; n ; n--)
C.AddByte(CHAR_TAB) ;
nLine = m_Line ;
}
// Now for each subtag, output first the pretext (part of this tag's content) and then call Display on the subtag
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) ;
}
// Now write out the content
if (m_strContent)
{
S = m_strContent ;
if (pE && m_flagVE & VE_CT_ACTIVE)
C << m_pApp->ConvertText(S, pE) ;
else
C << S ;
}
}