00001 // 00002 // $Id: CTBodbcConnect.icc,v 1.4 1999/04/22 15:46:59 mueller Exp $ 00003 // 00004 /*----------------------------------------------------------------------------*/ 00005 /* C Tool Box: Designed and implemented by: */ 00006 /* Walter F.J. Mueller Gesellschaft fuer Schwerionenforschung (GSI) */ 00007 /* Planckstrasse 1, D-64291 Darmstadt, Germany */ 00008 /* Email: W.F.J.Mueller@gsi.de */ 00009 /* WWW: http://www-kp3.gsi.de/www/kp3/people/mueller.html */ 00010 /*------------------------------------------+---------------------------------*/ 00011 00012 //------------------------------------------+----------------------------------- 00014 00015 inline bool CTBodbcConnect::Connected() const 00016 { 00017 return mb_connected; 00018 } 00019 00020 //------------------------------------------+----------------------------------- 00022 00023 inline HENV& CTBodbcConnect::Henv() 00024 { 00025 return m_henv; 00026 } 00027 00028 //------------------------------------------+----------------------------------- 00030 00031 inline HENV& CTBodbcConnect::Hdbc() 00032 { 00033 return m_hdbc; 00034 } 00035 00036 //------------------------------------------+----------------------------------- 00038 00039 inline bool CTBodbcConnect::operator!() const 00040 { 00041 return !mb_connected; 00042 } 00043 00044 //------------------------------------------+----------------------------------- 00046 00047 inline CTBodbcConnect::operator bool() const 00048 { 00049 return mb_connected; 00050 } 00051 00052 //------------------------------------------+----------------------------------- 00058 inline ostream& operator<<(ostream& os, const CTBodbcConnect& obj) 00059 { 00060 obj.ToStream(os); 00061 return os; 00062 }