Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

IDBconnect.hxx

Go to the documentation of this file.
00001 #ifndef _IDBconnect_HXX
00002 #define _IDBconnect_HXX 1
00003 
00004 #include "CTBcstring.hxx"
00005 
00006 //
00007 // $Id: IDBconnect.hxx,v 1.6 1999/04/23 17:52:12 mueller Exp $
00008 //
00009 //
00010 class IDBconnect {
00011 
00012   public: 
00013                     IDBconnect();
00014                     ~IDBconnect();
00015 
00016     bool            Connect(const char* c_dcs);
00017     bool            Disconnect();
00018     bool            Connected() const;
00019 
00020     CTBodbcConnect& Dbc();
00021 
00022     void            ToStream(ostream& os = cout) const;
00023 
00024     bool            operator!() const;
00025                     operator bool() const;
00026 
00027     static IDBconnect& Default();
00028 
00029     static bool     DefaultConnect();
00030     static bool     DefaultConnect(const char* c_dcs);
00031     static bool     DefaultDisconnect();
00032     static bool     DefaultConnected();
00033 
00034     static void     DefaultDCS(const char* c_dcs);
00035     static const char* DefaultDCS();
00036 
00037   private:
00038 
00039     CTBodbcConnect*  mp_dbc;                
00040 
00041     static IDBconnect  m_defaultdbc;        
00042     static CTBcstring<256> mc_defaultdcs;   
00043 };
00044 
00045     ostream&        operator<<(ostream& os, const IDBconnect& obj);
00046 
00047 #if !(defined(CTB__OutLine) || defined(IDBconnect__OutLine))
00048 #include "IDBconnect.icc"
00049 #endif
00050 
00051 #endif

Generated at Fri Oct 24 18:17:33 2003 for IDBbase by doxygen1.2.9-20010812 written by Dimitri van Heesch, © 1997-2001