Delete an object from the datacron. This function appears only for consistency with the base class and does nothing.
| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hdbBinRepos::Delete | (uint32_t,) |
Declared in file: hzDatabase.h
Defined in file : hdbBinRepos.cpp
Function Logic:
Function body:
hzEcode hdbBinRepos::Delete (uint32_t datumId)
{
// Delete an object from the datacron.
//
// This function appears only for consistency with the base class and does nothing.
//
// Arguments: 1) datumId The object id to be deleted
//
// Returns: E_NOINIT The datacron is not initialized
// E_SEQUENCE The datacron is not open for writing
// E_RANGE The requested item does not exist
// E_OK Operation successful
_hzfunc("hdbBinRepos::Delete") ;
// Repos not initialized?
if (m_nInitState < 1)
return E_NOINIT ;
// Repos not open?
if (m_nInitState < 2)
return E_NOTOPEN ;
// Datum id out of range
if (datumId < 1|| datumId >&eq; m_nSeqId)
return E_RANGE ;
return E_OK ;
}