NCBI C++ ToolKit
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends | List of all members
CDriverManager Class Reference

Search Toolkit Book for CDriverManager

#include <dbapi/driver_mgr.hpp>

+ Inheritance diagram for CDriverManager:
+ Collaboration diagram for CDriverManager:

Public Member Functions

IDataSourceCreateDs (const string &driver_name, const map< string, string > *attr=0, const string &tag=kEmptyStr)
 
IDataSourceCreateDs (const string &driver_name, const string &tag)
 
IDataSourceCreateDsFrom (const string &drivers, const IRegistry *reg=0, const string &tag=kEmptyStr)
 
IDataSourceCreateDsFrom (const string &drivers, const string &tag)
 
IDataSourceMakeDs (const CDBConnParams &params, const string &tag=kEmptyStr)
 
void DestroyDs (const string &driver_name)
 
void DestroyDs (const IDataSource *ds)
 
void SetMaxConnect (unsigned int max_connect)
 
unsigned int GetMaxConnect (void)
 
- Public Member Functions inherited from C_DriverMgr
 C_DriverMgr (unsigned int nof_drivers=16)
 
I_DriverContextGetDriverContext (const string &driver_name, string *err_msg=0, const map< string, string > *attr=0)
 
virtual ~C_DriverMgr ()
 
void AddDllSearchPath (const string &path)
 Add path for the DLL lookup. More...
 
void ResetDllSearchPath (vector< string > *previous_paths=NULL)
 Delete all user-installed paths for the DLL lookup (for all resolvers) More...
 
CDllResolver::TExtraDllPath SetDllStdSearchPath (CDllResolver::TExtraDllPath standard_paths)
 Specify which standard locations should be used for the DLL lookup (for all resolvers). More...
 
CDllResolver::TExtraDllPath GetDllStdSearchPath (void) const
 Get standard locations which should be used for the DLL lookup. More...
 
I_DriverContextGetDriverContextFromTree (const string &driver_name, const TPluginManagerParamTree *const attr=NULL)
 
I_DriverContextGetDriverContextFromMap (const string &driver_name, const map< string, string > *attr=NULL)
 

Static Public Member Functions

static CDriverManagerGetInstance ()
 
static void RemoveInstance ()
 

Protected Types

typedef multimap< string, class IDataSource * > TDsContainer
 

Protected Member Functions

 CDriverManager ()
 
virtual ~CDriverManager ()
 
class IDataSourceRegisterDs (const string &driver_name, class I_DriverContext *ctx)
 

Protected Attributes

CMutex m_Mutex
 
TDsContainer m_ds_list
 

Friends

class CSafeStatic_Allocator< CDriverManager >
 

Detailed Description

Definition at line 64 of file driver_mgr.hpp.

Member Typedef Documentation

Definition at line 113 of file driver_mgr.hpp.

Constructor & Destructor Documentation

CDriverManager::CDriverManager ( )
protected

Definition at line 68 of file driver_mgr.cpp.

CDriverManager::~CDriverManager ( )
protectedvirtual

Member Function Documentation

IDataSource * CDriverManager::CreateDs ( const string driver_name,
const map< string, string > *  attr = 0,
const string tag = kEmptyStr 
)
IDataSource* CDriverManager::CreateDs ( const string driver_name,
const string tag 
)
inline

Definition at line 85 of file driver_mgr.hpp.

References CreateDs(), and NULL.

IDataSource * CDriverManager::CreateDsFrom ( const string drivers,
const IRegistry reg = 0,
const string tag = kEmptyStr 
)
IDataSource* CDriverManager::CreateDsFrom ( const string drivers,
const string tag 
)
inline

Definition at line 92 of file driver_mgr.hpp.

References CreateDs(), and NULL.

void CDriverManager::DestroyDs ( const string driver_name)
void CDriverManager::DestroyDs ( const IDataSource ds)
CDriverManager & CDriverManager::GetInstance ( )
static
unsigned int CDriverManager::GetMaxConnect ( void  )
inline

Definition at line 108 of file driver_mgr.hpp.

References CDbapiConnMgr::GetMaxConnect().

IDataSource * CDriverManager::MakeDs ( const CDBConnParams params,
const string tag = kEmptyStr 
)
IDataSource * CDriverManager::RegisterDs ( const string driver_name,
class I_DriverContext ctx 
)
protected

Definition at line 180 of file driver_mgr.cpp.

References multimap_checker< Container >::insert(), m_ds_list, and m_Mutex.

Referenced by CreateDs(), CreateDsFrom(), and MakeDs().

void CDriverManager::RemoveInstance ( )
static

Definition at line 63 of file driver_mgr.cpp.

void CDriverManager::SetMaxConnect ( unsigned int  max_connect)
inline

Definition at line 103 of file driver_mgr.hpp.

References CDbapiConnMgr::SetMaxConnect().

Friends And Related Function Documentation

friend class CSafeStatic_Allocator< CDriverManager >
friend

Definition at line 66 of file driver_mgr.hpp.

Member Data Documentation

TDsContainer CDriverManager::m_ds_list
protected

Definition at line 125 of file driver_mgr.hpp.

Referenced by CreateDs(), DestroyDs(), MakeDs(), RegisterDs(), and ~CDriverManager().

CMutex CDriverManager::m_Mutex
mutableprotected

Definition at line 124 of file driver_mgr.hpp.

Referenced by CreateDs(), CreateDsFrom(), DestroyDs(), MakeDs(), RegisterDs(), and ~CDriverManager().


The documentation for this class was generated from the following files:
Modified on Tue Jul 25 19:55:50 2017 by modify_doxy.py rev. 533848