NCBI C++ ToolKit
Classes | Public Member Functions | Private Types | Private Attributes | List of all members
C_xDriverMgr Class Reference

Search Toolkit Book for C_xDriverMgr

+ Collaboration diagram for C_xDriverMgr:

Classes

struct  SDrivers
 

Public Member Functions

 C_xDriverMgr (void)
 
virtual ~C_xDriverMgr (void)
 
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_DriverContextGetDriverContext (const string &driver_name, const TPluginManagerParamTree *const attr=NULL)
 
I_DriverContextGetDriverContext (const string &driver_name, const map< string, string > *attr=NULL)
 

Private Types

typedef CPluginManager< I_DriverContextTContextManager
 
typedef CPluginManagerGetter< I_DriverContextTContextManagerStore
 

Private Attributes

vector< SDriversm_Drivers
 
CFastMutex m_Mutex
 
CRef< TContextManagerm_ContextManager
 

Detailed Description

Definition at line 140 of file driver_mgr.cpp.

Member Typedef Documentation

◆ TContextManager

Definition at line 190 of file driver_mgr.cpp.

◆ TContextManagerStore

Definition at line 191 of file driver_mgr.cpp.

Constructor & Destructor Documentation

◆ C_xDriverMgr()

C_xDriverMgr::C_xDriverMgr ( void  )

◆ ~C_xDriverMgr()

C_xDriverMgr::~C_xDriverMgr ( void  )
virtual

Definition at line 207 of file driver_mgr.cpp.

Member Function Documentation

◆ AddDllSearchPath()

void C_xDriverMgr::AddDllSearchPath ( const string path)

Add path for the DLL lookup.

Definition at line 213 of file driver_mgr.cpp.

References m_ContextManager, and m_Mutex.

◆ GetDllStdSearchPath()

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

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

See also
SetDllStdSearchPath

Definition at line 240 of file driver_mgr.cpp.

References m_ContextManager, and m_Mutex.

◆ GetDriverContext() [1/2]

I_DriverContext * C_xDriverMgr::GetDriverContext ( const string driver_name,
const map< string, string > *  attr = NULL 
)

◆ GetDriverContext() [2/2]

I_DriverContext * C_xDriverMgr::GetDriverContext ( const string driver_name,
const TPluginManagerParamTree *const  attr = NULL 
)

Definition at line 249 of file driver_mgr.cpp.

References DATABASE_DRIVER_ERROR, m_ContextManager, m_Mutex, NCBI_INTERFACE_VERSION, and NULL.

Referenced by GetDriverContext().

◆ ResetDllSearchPath()

void C_xDriverMgr::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 222 of file driver_mgr.cpp.

References m_ContextManager, and m_Mutex.

◆ SetDllStdSearchPath()

CDllResolver::TExtraDllPath C_xDriverMgr::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 231 of file driver_mgr.cpp.

References m_ContextManager, and m_Mutex.

Member Data Documentation

◆ m_ContextManager

CRef<TContextManager> C_xDriverMgr::m_ContextManager
private

◆ m_Drivers

vector<SDrivers> C_xDriverMgr::m_Drivers
private

Definition at line 185 of file driver_mgr.cpp.

◆ m_Mutex

CFastMutex C_xDriverMgr::m_Mutex
mutableprivate

The documentation for this class was generated from the following file:
Modified on Mon Apr 22 04:07:05 2024 by modify_doxy.py rev. 669887