Return TypeFunction nameArguments
hzEcodehdsBlock::AddVisent(hdsVE*,)

Declared in file: hzDissemino.h
Defined in file : hdsCore.cpp

Function Logic:

0:START 1:unknown 2:items 3:unknown 4:items 5:unknown 6:items 7:unknown 8:items 9:unknown 10:unknown 11:items 12:items 13:Return E_OK

Function body:

hzEcode hdsBlock::AddVisent (hdsVE* pChild)
{
   //  Category: Dissemino System Initialization
   //  
   _hzfunc("hdsBlock::AddVisent") ;
   uint32_t    nV ;    //  VE iterator
   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) ;
   //  Run through array looking for duplicates
   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) ;
   }
   //  threadLog("ADDED CHILD %s TO XINCLUDE %p %s\n", *pChild->m_Tag, this, *m_Refname) ;
   m_VEs.Add(pChild) ;
   return E_OK ;
}