?? connectionpool.h
字號:
#ifndef _CConnectionPool_H
#define _CConnectionPool_H
#include "DBConnection.h"
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Class :CConnectionPool
// Purpose : Helds a structure of all connections that can be established to the database.
// Comment : see ConnectionPool.cpp for implementation of this class.
class CConnectionPool
{
public:
CConnectionPool();
~CConnectionPool();
void AddConnection(CDBConnection *DBCon);
BOOL AddConnection(CString DSN,CString sUser,CString sPassword,BOOL UseLogonDlg);
CDBConnection *GetConnection(CString sDSN);
CDBConnection *GetConnection(int index);
int GetNumConnections();
protected:
// A table that helds all connections to the database.
CTypedPtrArray<CObArray, CDBConnection*> m_pConnections;
private:
};
#endif // _CConnectionPool_H
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -