NCBI C++ ToolKit
Classes | Typedefs | Functions | Variables | Friends
Driver Manager
+ Collaboration diagram for Driver Manager:

Classes

class  C_DriverMgr
 
class  CDllResolver_Getter< I_DriverContext >
 
class  CSafeStatic_Allocator< T >
 Helper class for object allocation/deallocation. More...
 
class  CDriverManager
 

Typedefs

typedef multimap< string, class IDataSource * > CDriverManager::TDsContainer
 

Functions

 C_DriverMgr::C_DriverMgr (unsigned int nof_drivers=16)
 
I_DriverContextC_DriverMgr::GetDriverContext (const string &driver_name, string *err_msg=0, const map< string, string > *attr=0)
 
virtual C_DriverMgr::~C_DriverMgr ()
 
void C_DriverMgr::AddDllSearchPath (const string &path)
 Add path for the DLL lookup. More...
 
void C_DriverMgr::ResetDllSearchPath (vector< string > *previous_paths=NULL)
 Delete all user-installed paths for the DLL lookup (for all resolvers) More...
 
CDllResolver::TExtraDllPath C_DriverMgr::SetDllStdSearchPath (CDllResolver::TExtraDllPath standard_paths)
 Specify which standard locations should be used for the DLL lookup (for all resolvers). More...
 
CDllResolver::TExtraDllPath C_DriverMgr::GetDllStdSearchPath (void) const
 Get standard locations which should be used for the DLL lookup. More...
 
I_DriverContextC_DriverMgr::GetDriverContextFromTree (const string &driver_name, const TPluginManagerParamTree *const attr=NULL)
 
I_DriverContextC_DriverMgr::GetDriverContextFromMap (const string &driver_name, const map< string, string > *attr=NULL)
 
CPluginManager_DllResolverCDllResolver_Getter< I_DriverContext >::operator() (void)
 
I_DriverContextGet_I_DriverContext (const string &driver_name, const map< string, string > *attr=NULL)
 
I_DriverContextMakeDriverContext (const CDBConnParams &params)
 
static CDriverManagerCDriverManager::GetInstance ()
 
static void CDriverManager::RemoveInstance ()
 
IDataSourceCDriverManager::CreateDs (const string &driver_name, const map< string, string > *attr=0, const string &tag=kEmptyStr)
 
IDataSourceCDriverManager::CreateDs (const string &driver_name, const string &tag)
 
IDataSourceCDriverManager::CreateDsFrom (const string &drivers, const IRegistry *reg=0, const string &tag=kEmptyStr)
 
IDataSourceCDriverManager::CreateDsFrom (const string &drivers, const string &tag)
 
IDataSourceCDriverManager::MakeDs (const CDBConnParams &params, const string &tag=kEmptyStr)
 
void CDriverManager::DestroyDs (const string &driver_name)
 
void CDriverManager::DestroyDs (const IDataSource *ds)
 
void CDriverManager::SetMaxConnect (unsigned int max_connect)
 
unsigned int CDriverManager::GetMaxConnect (void)
 
 CDriverManager::CDriverManager ()
 
virtual CDriverManager::~CDriverManager ()
 
class IDataSourceCDriverManager::RegisterDs (const string &driver_name, class I_DriverContext *ctx)
 

Variables

CMutex CDriverManager::m_Mutex
 
TDsContainer CDriverManager::m_ds_list
 

Friends

class CDriverManager::CSafeStatic_Allocator< CDriverManager >
 

Detailed Description

Typedef Documentation

◆ TDsContainer

Definition at line 113 of file driver_mgr.hpp.

Function Documentation

◆ AddDllSearchPath()

void C_DriverMgr::AddDllSearchPath ( const string path)

Add path for the DLL lookup.

Definition at line 317 of file driver_mgr.cpp.

References s_DrvMgr.

Referenced by init_common().

◆ C_DriverMgr()

C_DriverMgr::C_DriverMgr ( unsigned int  nof_drivers = 16)

Definition at line 299 of file driver_mgr.cpp.

◆ CDriverManager()

CDriverManager::CDriverManager ( )
protected

Definition at line 68 of file driver_mgr.cpp.

◆ CreateDs() [1/2]

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

◆ CreateDs() [2/2]

IDataSource* CDriverManager::CreateDs ( const string driver_name,
const string tag 
)
inline

Definition at line 85 of file driver_mgr.hpp.

References CDriverManager::CreateDs(), NULL, and tag.

◆ CreateDsFrom() [1/2]

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

◆ CreateDsFrom() [2/2]

IDataSource* CDriverManager::CreateDsFrom ( const string drivers,
const string tag 
)
inline

Definition at line 92 of file driver_mgr.hpp.

References CDriverManager::CreateDs(), NULL, and tag.

◆ DestroyDs() [1/2]

void CDriverManager::DestroyDs ( const IDataSource ds)

◆ DestroyDs() [2/2]

void CDriverManager::DestroyDs ( const string driver_name)

◆ Get_I_DriverContext()

I_DriverContext* Get_I_DriverContext ( const string driver_name,
const map< string, string > *  attr = NULL 
)

◆ GetDllStdSearchPath()

CDllResolver::TExtraDllPath C_DriverMgr::GetDllStdSearchPath ( void  ) const

Get standard locations which should be used for the DLL lookup.

See also
SetDllStdSearchPath

Definition at line 338 of file driver_mgr.cpp.

References s_DrvMgr.

◆ GetDriverContext()

I_DriverContext * C_DriverMgr::GetDriverContext ( const string driver_name,
string err_msg = 0,
const map< string, string > *  attr = 0 
)

◆ GetDriverContextFromMap()

I_DriverContext * C_DriverMgr::GetDriverContextFromMap ( const string driver_name,
const map< string, string > *  attr = NULL 
)

Definition at line 354 of file driver_mgr.cpp.

References s_DrvMgr.

Referenced by CDriverManager::CreateDs(), and CDriverManager::CreateDsFrom().

◆ GetDriverContextFromTree()

I_DriverContext * C_DriverMgr::GetDriverContextFromTree ( const string driver_name,
const TPluginManagerParamTree *const  attr = NULL 
)

Definition at line 345 of file driver_mgr.cpp.

References s_DrvMgr.

◆ GetInstance()

CDriverManager & CDriverManager::GetInstance ( void  )
static

◆ GetMaxConnect()

unsigned int CDriverManager::GetMaxConnect ( void  )
inline

Definition at line 108 of file driver_mgr.hpp.

References CDbapiConnMgr::GetMaxConnect().

◆ MakeDriverContext()

I_DriverContext* MakeDriverContext ( const CDBConnParams params)

◆ MakeDs()

IDataSource * CDriverManager::MakeDs ( const CDBConnParams params,
const string tag = kEmptyStr 
)

◆ operator()()

◆ RegisterDs()

IDataSource * CDriverManager::RegisterDs ( const string driver_name,
class I_DriverContext ctx 
)
protected

◆ RemoveInstance()

void CDriverManager::RemoveInstance ( )
static

Definition at line 63 of file driver_mgr.cpp.

◆ ResetDllSearchPath()

void C_DriverMgr::ResetDllSearchPath ( vector< string > *  previous_paths = NULL)

Delete all user-installed paths for the DLL lookup (for all resolvers)

Parameters
previous_pathsIf non-NULL, store the prevously set search paths in this container

Definition at line 324 of file driver_mgr.cpp.

References s_DrvMgr.

◆ SetDllStdSearchPath()

CDllResolver::TExtraDllPath C_DriverMgr::SetDllStdSearchPath ( CDllResolver::TExtraDllPath  standard_paths)

Specify which standard locations should be used for the DLL lookup (for all resolvers).

If standard locations are not set explicitelly using this method CDllResolver::fDefaultDllPath will be used by default.

Definition at line 331 of file driver_mgr.cpp.

References s_DrvMgr.

◆ SetMaxConnect()

void CDriverManager::SetMaxConnect ( unsigned int  max_connect)
inline

Definition at line 103 of file driver_mgr.hpp.

References CDbapiConnMgr::SetMaxConnect().

◆ ~C_DriverMgr()

C_DriverMgr::~C_DriverMgr ( )
virtual

Definition at line 304 of file driver_mgr.cpp.

◆ ~CDriverManager()

CDriverManager::~CDriverManager ( )
protectedvirtual

Variable Documentation

◆ m_ds_list

TDsContainer CDriverManager::m_ds_list
protected

◆ m_Mutex

CMutex CDriverManager::m_Mutex
mutableprotected

Friends

◆ CSafeStatic_Allocator< CDriverManager >

friend class CSafeStatic_Allocator< CDriverManager >
friend

Definition at line 1 of file driver_mgr.hpp.

Modified on Fri Sep 20 14:58:15 2024 by modify_doxy.py rev. 669887