Insert a new data enum into the ADP. This may only be done during initialization.
| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hdbADP::RegisterDataEnum | (hdbEnum*,) |
Declared in file: hzDatabase.h
Defined in file : hdbADP.cpp
Function Logic:
Function body:
hzEcode hdbADP::RegisterDataEnum (hdbEnum* pEnum)
{
// Insert a new data enum into the ADP. This may only be done during initialization.
//
_hzfunc("hdbADP::RegisterDataEnum") ;
if (!pEnum)
return E_ARGUMENT ;
if (!pEnum->strType())
return E_NOINIT ;
m_mapDatatypes.Insert(pEnum->strType(), pEnum) ;
m_mapEnums.Insert(pEnum->strType(), pEnum) ;
return E_OK ;
}