Close the datacron. Arguments: None
| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hdbIsamfile::Close | (void) |
Declared in file: hzDatabase.h
Defined in file : hdbIsamfile.cpp
Function Logic:
Function body:
hzEcode hdbIsamfile::Close (void)
{
// Close the datacron.
//
// Arguments: None
//
// Returns: E_NOINIT The datacron is not initialized
// E_SEQUENCE The datacron is not open
// E_OK The operation was successful
_hzfunc("hdbIsamfile::Close") ;
if (m_nInitState < 1) return E_NOINIT ;
if (m_nInitState < 2) return E_NOTOPEN ;
// if (m_RdI.is_open()) m_RdI.close() ;
if (m_RdD.is_open()) m_RdD.close() ;
if (m_WrI.is_open()) m_WrI.close() ;
if (m_WrD.is_open()) m_WrD.close() ;
return E_OK ;
}