| Return Type | Function name | Arguments |
|---|---|---|
| bool | hzXmlNode::IsAncestor | (hzXmlNode*,) |
Declared in file: hzDocument.h
Defined in file : hzDocXml.cpp
Function Logic:
Function body:
bool hzXmlNode::IsAncestor (hzXmlNode* candidate)
{
hzXmlNode* pNode ;
if (!candidate)
return false ;
if (m_nLevel <&eq; candidate->m_nLevel)
return false ;
for (pNode = this ; pNode->m_nLevel > candidate->m_nLevel ; pNode = pNode->Parent()) ;
return pNode == candidate ? true : false ;
}