Return a pointer to an already asserted hdbObject instance Pointer to the hdbObject if it has been asserted. Null otherwise.
| Return Type | Function name | Arguments |
|---|---|---|
| hdbObject* | hdsInfo::ObjectSelect | (hzString&,) |
Declared in file: hzDissemino.h
Defined in file : hdsCore.cpp
Function Logic:
Function body:
hdbObject* hdsInfo::ObjectSelect (hzString& objKey)
{
// Category: Dissemino Operation
//
// Return a pointer to an already asserted hdbObject instance
//
// Argument: objKey The application name for the hdbObject instance
//
// Returns: Pointer to the hdbObject if it has been asserted.
// Null otherwise.
hzList<hdbObject*>::Iter objI ; // Object iterator
hdbObject* pObj_test ; // Test object pointer
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 ;
}
return m_pObj ;
}