Return Type | Function name | Arguments |
---|---|---|
hzEcode | hdsInfo::ObjectAssert | (const hzString&,const hdbClass*,) |
Declared in file: hzDissemino.h
Defined in file : hdsCore.cpp
Function Logic:
Function body:
hzEcode hdsInfo::ObjectAssert (const hzString& objKey, const hdbClass* pClass) { hzList<hdbObject*>::Iter objI ; hdbObject* pObj_test ; if (!m_Objects.Count()) { m_pObj = new hdbObject() ; m_pObj->Init(pClass) ; if (objKey) m_pObj->SetName(objKey) ; m_Objects.Add(m_pObj) ; return E_OK ; } m_pObj = 0; for (objI = m_Objects ; objI.Valid() ; objI++) { pObj_test = objI.Element() ; if (pObj_test->ObjKey() != objKey) continue ; m_pObj = pObj_test ; break ; } if (!m_pObj) { m_pObj = new hdbObject() ; m_pObj->Init(pClass) ; if (objKey) m_pObj->SetName(objKey) ; m_Objects.Add(m_pObj) ; } return E_OK ; }