Close the Binary Repository. Arguments: None

Return TypeFunction nameArguments
hzEcodehdbBinRepos::Close(void)

Declared in file: hzDatabase.h
Defined in file : hdbBinRepos.cpp

Function Logic:

0:START 1:unknown 2:Return E_NOINIT 3:unknown 4:Return E_NOTOPEN 5:unknown 6:items 7:unknown 8:items 9:unknown 10:items 11:unknown 12:items 13:items m_nInitState 14:Return E_OK

Function body:

hzEcode hdbBinRepos::Close (void)
{
   //  Close the Binary Repository.
   //  
   //  Arguments: None
   //  
   //  Returns: E_NOINIT The datacron is not initialized
   //     E_SEQUENCE The datacron is not open
   //     E_OK  The operation was successful
   _hzfunc("hdbBinRepos::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() ;
   threadLog("CLOSED %s\n", *m_Name) ;
   m_nInitState = 1;
   return E_OK ;
}