| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hdsBlock::AddVisent | (hdsVE*,) |
Declared in file: hzDissemino.h
Defined in file : hdsCore.cpp
Function Logic:
Function body:
hzEcode hdsBlock::AddVisent (hdsVE* pChild)
{
_hzfunc("hdsBlock::AddVisent") ;
uint32_t nV ;
if (!pChild) hzexit(E_ARGUMENT, "%s: Null child supplied to block", *m_Refname) ;
if (m_flagVE & VE_COMPLETE) hzexit(E_SEQUENCE, "%s: Block is already complete, cannot add more entities", *m_Refname) ;
if (pChild == this) hzexit(E_CORRUPT, "%s: Case 1 Child is include block pointing to itself", *m_Refname) ;
if (m_VID == pChild->m_VID) hzexit(E_CORRUPT, "%s: Case 2 Child is include block pointing to itself", *m_Refname) ;
for (nV = 0; nV < m_VEs.Count() ; nV++)
{
if (m_VEs[nV] == pChild)
hzexit(E_CORRUPT, "%s: Child is already in include block", *m_Refname) ;
}
m_VEs.Add(pChild) ;
return E_OK ;
}