📄 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 + -