00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef _ODBCCONNMGR_H_
00015 #define _ODBCCONNMGR_H_
00016
00017 #include <list>
00018
00019 #include "ODBCConnHandle.h"
00020
00021 using namespace std;
00022
00023 class ODBCConnHandle;
00024
00025 class ODBCConnMgr{
00026 public:
00027 ~ODBCConnMgr();
00028
00029 ODBCConnHandle *ConnectToHost(char *, char *, char *);
00030 int DisconnectFromHost(char *);
00031 static ODBCConnMgr *GetMgr();
00032 private:
00033 ODBCConnMgr();
00034
00035 list<ODBCConnHandle *> handles;
00036 static ODBCConnMgr *mgr;
00037 };
00038
00039 #endif